raspberrypi-ui / piclone

Utility to back up Pi to an SD card reader
260 stars 62 forks source link

[feature request] add rsync as alternate option after first SD clone #10

Open golfromeo-fr opened 8 years ago

golfromeo-fr commented 8 years ago

When a user has clone its SDcard to another SDcard, to limit wear leveling of SDcard cells, it would be nice to have an option to do "rsync" instead of full cloning.

for example, look at rsync in the scripts like https://wiki.archlinux.org/index.php/Full_system_backup_with_rsync https://github.com/igorpecovnik/lib/blob/2174692e6a494353c3c1054f97892fdaafc9fe38/scripts/nand-sata-install/usr/lib/nand-sata-install/nand-sata-install.sh

rsync -aAXv --exclude={"/dev/","/proc/","/sys/","/tmp/","/run/","/mnt/","/media/*","/lost+found"} / /path/to/backup/folder

Also doing a rsync just after the first clone may lower possible cloning issues with a live system.

SpareSimian commented 1 year ago

Add to the rsync options, --delete and --one-file-system. The latter can replace most of the excludes.