Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
golfromeo-fr opened this issue Jun 22, 2016 · 1 comment

Comments

@golfromeo-fr
Copy link
Contributor

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants