diff options
author | Pjotr Prins | 2022-10-27 10:20:33 +0200 |
---|---|---|
committer | Pjotr Prins | 2022-10-27 10:20:33 +0200 |
commit | 5f647fec626d555a7546dc7d922783dddcc33a3e (patch) | |
tree | 097c7f637a913a805ad7307fac813e808d17e4c0 /topics/systems | |
parent | e33a497573d522c1ded7158a11b3b1314d62ac73 (diff) | |
download | gn-gemtext-5f647fec626d555a7546dc7d922783dddcc33a3e.tar.gz |
drop server: add scripting
Diffstat (limited to 'topics/systems')
-rw-r--r-- | topics/systems/backup-drops.gmi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/topics/systems/backup-drops.gmi b/topics/systems/backup-drops.gmi index 4fd916b..98a2381 100644 --- a/topics/systems/backup-drops.gmi +++ b/topics/systems/backup-drops.gmi @@ -13,6 +13,7 @@ This system proves pretty resilient over time. Only on the synology server I can ## Borg backups +It is advised to use a backup password and not store that on the remote. ## Running sheepdog on rabbit @@ -128,3 +129,21 @@ fusermount -u ~/mnt/dropserver ``` IMPORTANT: it is important to try ssh and read /var/log/auth.log to deal with permission issues. sshfs and the underlying sftp protocol are fussy. + +## Using rsync over sshfs with sheepdog + +A backup script with sheepdog may look like + +``` +sheepdog_run.rb -h rabbit --always -v --tag "drop-mount-dropserver" -c "sshfs -o IdentityFile=~/.ssh/id_ecdsa_backup bacchus@dropserver:/ ~/mnt/this" + +sheepdog_run.rb -h rabbit --always -v --tag "drop-rsync-dropserver" -c "rsync -vrltDP this/* borg/* ~/mnt/this/drop/this/ --delete" + +sheepdog_run.rb -h rabbit --always -v --tag "drop-unmount-dropserver" -c "fusermount -u ~/mnt/this" +``` + +It may be useful to add the following options to sshfs: + +``` +sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=~/.ssh/id_ecdsa_backup ... +``` |