Code: #! /bin/sh stty -echo; ssh backupuser@192.168.254.100 "sudo -v"; stty echo rsync -avzn --delete \ #Change "-avzn" to "-avz" after testing --rsync-path "sudo rsync" \ --exclude /proc/'*' \ --exclude /sys/'*' \ --exclude /syspart/'*' \ --exclude /dev/'*' \ --exclude /tmp/'*' \ --exclude /var/tmp/'*' \ --exclude /.debian/'*' \ #Excludes your debian chroot if you have one - recommended --exclude /media/'*' \ #Excludes /media - remove this line to back up the microsd contents as well / backupuser@192.168.254.100:/media/disk1/n900bak
#! /bin/sh stty -echo; ssh backupuser@192.168.254.100 "sudo -v"; stty echo rsync -avzn --delete \ #Change "-avzn" to "-avz" after testing --rsync-path "sudo rsync" \ --exclude /proc/'*' \ --exclude /sys/'*' \ --exclude /syspart/'*' \ --exclude /dev/'*' \ --exclude /tmp/'*' \ --exclude /var/tmp/'*' \ --exclude /.debian/'*' \ #Excludes your debian chroot if you have one - recommended --exclude /media/'*' \ #Excludes /media - remove this line to back up the microsd contents as well / backupuser@192.168.254.100:/media/disk1/n900bak