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_…
restic can backup your files to aws s3, azure blob, backblaze, openstack, … directly.
if you install rclone you have a greater choice of backup targets.
https://restic.readthedocs.io/
Rclone syncs your files to cloud storage: Google Drive, S3, Swift, Dropbox, Google Cloud Storage, Azure, Box and many more.
restic backups are encrypted restic cryptography so it should be save to put them on public cloud storage.