[opensuse] rsync question
![](https://seccdn.libravatar.org/avatar/ec344ceca24e727abd21bf50a0dc79d9.jpg?s=120&d=mm&r=g)
Hello SuSE people Just got me a new WD Passport external USB haard drive. (present from my great kids) Planning on using it for backups of my several OS's. Blew away the Windoze stuff and reformatted it into 4 ext3 primary partitions. (250GB - actually 232GB) Good move? Bad move? Now the question: If I do an rsync backup of the whole OS onto one of these new partitions, (10.3 for example) will rsync preserve everything? Like partitions and folders etc,? Never used rsync before. If so, could I blow away the original OS and restore it completely to a working condition? Any good how-tos on rsync? Sorry about my ignorance. Bob S -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/eeaa070dd6317ec84ae2eb35d4eaf01f.jpg?s=120&d=mm&r=g)
Bob S pecked at the keyboard and wrote:
Hello SuSE people
Just got me a new WD Passport external USB haard drive. (present from my great kids) Planning on using it for backups of my several OS's.
Blew away the Windoze stuff and reformatted it into 4 ext3 primary partitions. (250GB - actually 232GB) Good move? Bad move?
Now the question: If I do an rsync backup of the whole OS onto one of these new partitions, (10.3 for example) will rsync preserve everything? Like partitions and folders etc,? Never used rsync before.
If so, could I blow away the original OS and restore it completely to a working condition?
Any good how-tos on rsync? Sorry about my ignorance.
Bob S
rsync will only copy/move data, you will need to create any partitions yourself. The man page works fairly well as a tutorial. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/27aacf61a13c66fcc083fcf8a84823bc.jpg?s=120&d=mm&r=g)
Bob S wrote:
Hello SuSE people
Just got me a new WD Passport external USB haard drive. (present from my great kids) Planning on using it for backups of my several OS's.
Blew away the Windoze stuff and reformatted it into 4 ext3 primary partitions. (250GB - actually 232GB) Good move? Bad move?
Excellent move, works well with usb flash drives too.
Now the question: If I do an rsync backup of the whole OS onto one of these new partitions, (10.3 for example) will rsync preserve everything? Like partitions and folders etc,? Never used rsync before.
If so, could I blow away the original OS and restore it completely to a working condition?
As Ken said, rsync is for files, not partitions. (It is Fantastic for that, not only for local files, but for remote backups as well) Others will have to chime in on the partition backup to usb scheme. Using "dd" comes to mind with some way to reinstall the mbr and boot loader, but I am not near smart enough there to help.
Any good how-tos on rsync? Sorry about my ignorance.
rsync is the swiss army knife of file backup. For help: http://rsync.samba.org/ google "rsync howto" google "rsync examples" Just remember two things: (1) slashes are important! (a) rsync /folder1/folder2/ /tosome/newfolder Copies the *contents* of folder2 to newfolder (i.e. result newfolder/*.*) (b) rsync /folder1/folder2 /tosome/newfolder Copies *folder2* to newfolder (i.e. result: newfolder/folder2) (2) when using rsync --files-from .... ... -r (recursive) is not implied! The rest of rsync will fall into place as you learn it -- without any surprises. Tip - For unattended password-less remote backup create ssl-certificates and rsync will do the rest.
Bob S
-- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-06-24 at 20:31 -0500, David C. Rankin wrote: ...
The rest of rsync will fall into place as you learn it -- without any surprises.
I normally use: - --archive --acls --xattrs --hard-links --del --stats --human-readable - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIYhx8tTMYHG2NR9URAk7gAJ9pObi2PQ7kAYJLt9B38yDWhckKFQCeIk0W LFnr33qhKuk+Eu/CSb9O1Lc= =vvsy -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/a942c0ebe38955a7bd014a9dc53284a9.jpg?s=120&d=mm&r=g)
Hello, [an e-mail from another rsync enthusiast] Rsync is great. Making backups was a pain before I discovered it. Just in case you find it useful, you can find a home-made python script for rsyncing two directories, here: http://www.fyslab.hut.fi/~sri/syncsdirs_example.py The reason I wrote this script are the confusing include/exclude switches in rsync. This scripts takes care of them automatically. It is a pitty there is no kdeioslave for rsync.. It would be great to do rsync by drag'n drop in KDE. Regards, Sampsa On Wed, 2008-06-25 at 12:22 +0200, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Tuesday 2008-06-24 at 20:31 -0500, David C. Rankin wrote:
...
The rest of rsync will fall into place as you learn it -- without any surprises.
I normally use:
- --archive --acls --xattrs --hard-links --del --stats --human-readable
- -- Cheers, Carlos E. R.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFIYhx8tTMYHG2NR9URAk7gAJ9pObi2PQ7kAYJLt9B38yDWhckKFQCeIk0W LFnr33qhKuk+Eu/CSb9O1Lc= =vvsy -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Bob S
-
Carlos E. R.
-
David C. Rankin
-
Ken Schneider
-
Sampsa Riikonen