Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document the use of backup-with-borg #157

Open
olberger opened this issue May 29, 2024 · 1 comment
Open

Please document the use of backup-with-borg #157

olberger opened this issue May 29, 2024 · 1 comment

Comments

@olberger
Copy link
Contributor

That script seems to be referred to in the discussions, issues, or elsewhere, but there ain't any clear documentation explaining its use, AFAICS.

It would be great to have a mention in the README, somewhere.

Thanks in advance.

@olberger
Copy link
Contributor Author

For the records, AFAIU from reading https://forum.yunohost.org/t/borg-borg-server-deduplicated-encrypted-and-remote-backups/5006/32 there's a timer which runs it.

Indeed:

# systemctl list-timers | grep borg
Wed 2024-05-29 12:00:00 CEST 6min left     Wed 2024-05-29 11:00:02 CEST 53min ago    borg.timer                   borg.service

Then:

# cat /etc/systemd/system/borg.service 
[Unit]
Description=Run backup borg
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/sudo /var/www/borg/backup-with-borg borg
User=borg
Group=borg

#[Install]
#WantedBy=multi-user.target

OK, so one may manually run it with sudo /var/www/borg/backup-with-borg borg to proceed with backups...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant