You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
421 B
Bash
20 lines
421 B
Bash
# Pass arguments. ie. 192.168.1.112, rpi3.local, or website.co.uk
|
|
SERVER=$1
|
|
|
|
# Backup Documents
|
|
rdiff-backup \
|
|
~/documents \
|
|
$SERVER::/home/nathan/BACKUP/documents
|
|
|
|
# Backup Pictures, ex. screenshots (for now)
|
|
rdiff-backup \
|
|
--exclude ~/pictures/screenshots \
|
|
~/pictures \
|
|
$SERVER::/home/nathan/BACKUP/pictures
|
|
|
|
# Backup git repo (in case of forgotten pushed)
|
|
rdiff-backup \
|
|
~/git \
|
|
$SERVER::/home/nathan/BACKUP/git
|
|
|