After examining the man rsync page, I am still a bit unclear about the use of the utility for my purpose. I intend to use it to between two local partitions that are mounted to /mnt, backing up an entire directory tree, so that the instruction would be: rsync -avr /mnt/original /mnt/backup and restoration of the backup to its original place would be the same, only exchanging the names of the directories. What is not clear to me is how to handle compression. For backing up: rsync -avzr /mnt/original /mnt/backup But I have not understood how to undo the compression in the event I need to restore the backup. I'm sure that must be in the man page, buried among some things I don't really understand, but I can't find it. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 19 May 2009 22:20:41 +0300, Stan Goodman wrote:
What is not clear to me is how to handle compression. For backing up:
rsync -avzr /mnt/original /mnt/backup
But I have not understood how to undo the compression in the event I need to restore the backup. I'm sure that must be in the man page, buried among some things I don't really understand, but I can't find it.
Compression is only used in over-the-wire transfers, it doesn't store the files in a compressed format. If you want to compress the files, you're probably better off using something like tar or dar for creating your backups. Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
At 22:27:38 on Tuesday Tuesday 25 Iyar 5769, Jim Henderson
On Tue, 19 May 2009 22:20:41 +0300, Stan Goodman wrote:
What is not clear to me is how to handle compression. For backing up:
rsync -avzr /mnt/original /mnt/backup
But I have not understood how to undo the compression in the event I need to restore the backup. I'm sure that must be in the man page, buried among some things I don't really understand, but I can't find it.
Compression is only used in over-the-wire transfers, it doesn't store the files in a compressed format.
That wasn't clear to me. Thanks.
If you want to compress the files, you're probably better off using something like tar or dar for creating your backups.
Jim
-- Jim Henderson Please keep on-topic replies on the list so everyone benefits
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stan Goodman wrote:
After examining the man rsync page, I am still a bit unclear about the use of the utility for my purpose.
I intend to use it to between two local partitions that are mounted to /mnt, backing up an entire directory tree, so that the instruction would be:
rsync -avr /mnt/original /mnt/backup
and restoration of the backup to its original place would be the same, only exchanging the names of the directories.
What is not clear to me is how to handle compression. For backing up:
rsync -avzr /mnt/original /mnt/backup
But I have not understood how to undo the compression in the event I need to restore the backup. I'm sure that must be in the man page, buried among some things I don't really understand, but I can't find it.
The copied files are not compressed and need no decompression. The -z flag is only compression over the wire, transparent to you on either end, and is undesirable in this case where there is no wire. Also be advised, rsync between local directories is essentially merely a convenient form of cp. It does not do the magic rsync algorithm of only updating the deltas between the source and target files. It does full file copies. -- bkw -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Brian K. White
-
Jim Henderson
-
Stan Goodman