jtvdw
January 26, 2020, 5:09pm
1
Hi,
How can I configure a configuration or the option with the content as well to be backup automatically in nextcloud version 17.
I have to run the backup manually if I want 1.
I also saw that you can configure a backup on the installation via cPanel but that’s not what I want.
Thanks.
My script method that I started using more than a decade ago on a FreeBSD/Samba server is from
http://www.mikerubel.org/computers/rsync_snapshots/
His page (dated 2004!) will give you some good information and scripts.
Basically running a cron job of a rsnyc script.
You can search internet for rsync and cron from other authors.
Running a daily cron job, I have a 9 day rotating, hard linked incremental backup on a different hard drive/partition. I also manually archived past years (going back to 2006) for off site storage.
Hope that helps get you started.
@jtvdw not sure if it helps:
install restic as root
sudo -i
wget https://github.com/restic/restic/releases/download/v0.9.4/restic_0.9.4_linux_amd64.bz2
bunzip2 restic_0.9.4_linux_amd64.bz2
mv restic_0.9.4_linux_amd64 /usr/local/bin/restic
chmod 0755 /usr/local/bin/restic
mount the backup directory to /mnt/nc-backup
set two environment variables
export RESTIC_REPOSITORY="/var/nc-backup"
export RESTIC_PASSWORD="oJSesetLzRgphy9UwmWxi50oE0dkYa16"
initialize restic
restic init
create a backup script /usr/local/bin/backup_…
or
[URL REMOVED - Spam-protection [JK] ]
42IO
January 27, 2020, 7:39pm
4
Jeff_Lee:
rsnyc script
Love rsync!
you can use too rsnapshot (rsync+snapshot), duplicity (rsync + snapshot too) or restic (secure snapshot)
3 tools easy to use into script or console!
I’ll have to take a look at your suggestions.
I’ve used my script successfully for so long that I tend to be a bit of a curmudgeon about changing.
jtvdw
January 27, 2020, 8:33pm
6
Hi,
Thanks guys, I really do appreciate all the details.
Will test and revert back.
Much appreciated!