|
|
|
|
|
by Symbiote
3295 days ago
|
|
If you accidentally delete some files (even all the files!), won't Syncthing delete all the "backups"? I don't use Syncthing, I use an rsync script I wrote over 10 years ago, using the --link-dest option to keep incremental backups for around 2 years. This relies on Zsh's fancy globbing, but the gist of it is: date=$(date +%Y%m%d-%H%M)
[for loop over users]
older=( $backups/$user/*(N/om) )
rsync --archive --recursive \
--fuzzy --partial --partial-dir=$backups/$user/.rsync-partial \
--log-file=$tempfile --link-dest=${^older[1,20]} \
--files-from=$configdir/I-$user \
--exclude-from=$configdir/X-$user \
$user@$from:/ $backups/$user/$date/
|
|