added prune comand to forget last

This commit is contained in:
infernvs 2017-11-20 14:37:54 +00:00 committed by GitHub
parent 5eb55c79e8
commit 03c5a9b66f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ tar -cpzf $tmp_dir/$sql_file --directory=/ --exclude=proc --exclude=sys --exclud
restic -r sftp:$sshuser@$sshhost:$dest -p /root/pw backup $src_dir/$sql_file
restic -r sftp:$sshuser@$sshhost:$dest -p /root/pw forget --keep-last 1
restic -r sftp:$sshuser@$sshhost:$dest -p /root/pw forget --keep-last 1 --prune
restic -r sftp:$sshuser@$sshhost:$dest -p /root/pw snapshots >> /tmp/backup/ss