This question already has an answer here:
I am currently running a web-facing server with the root filesystem on an external USB disk with another USB disk attached and destined for backup of the server.
What I really need to do, however, is to have a full backup system running as a scheduled cron task, with incremental backups and/or compression, as well as an easy to run restore procedure or script.
My setup is as follows:
/dev/mmcblk0p1: LABEL="PI BOOT" UUID="6654-8624" TYPE="vfat" /dev/sda1: LABEL="rootfs" UUID="6d300a32-1cd7-46ab-be6f-c30c2bc51519" TYPE="ext4" /dev/sdb1: LABEL="The Pad Backup" UUID="ec33414c-b925-d101-a012-404cb925d101" TYPE="ext4" Filesystem Size Used Avail Use% Mounted on /dev/root 917G 3.9G 867G 1% / devtmpfs 459M 0 459M 0% /dev tmpfs 93M 1.4M 92M 2% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 186M 0 186M 0% /run/shm /dev/mmcblk0p1 968M 40M 929M 5% /boot none 463M 0 463M 0% /sys/fs/cgroup
Please note: This is not about backing up an SD card
Any help would be greatly appreciated.