Files
Nexterm-Source/snippets/resticbackupperubuntu.snippet

5 lines
358 B
Plaintext

# @name: Restic Backupper (Ubuntu)
# @description: This will make a new backup snapshot using Restic on Ubuntu, and then keep the latest 7 ones
# @os: Ubuntu
sudo bash -c "export RESTIC_PASSWORD='Ms@199903' && restic -r rest:http://192.168.0.100:8080/ --verbose backup /DATA/AppData && restic -r rest:http://192.168.0.100:8080/ forget --keep-last 7 --prune"