Hi folks,
I've been trying to wrap my head around this for a bit, done my googling and archive searching but I still can't seem to 'get' it.
Here goes:
I've a spare drive in my CentOS5.1 box, which (for testing now) I mount manually under /mnt/backup
I want to backup the /home tree to that box nightly via rsync (cronjob), so I tried this:
rsync -avrogz /home/ /mnt/backup/
All goes well, but it seems that rsync is copying the files and compressing them into an archive....both the file structure and the archive exist. Is there a flag I'm missing, or is there a better, more efficient way to get this accomplished?
Thanks in advance, -Ray
On Apr 7, 2008, at 13:07, Ray Leventhal wrote:
I want to backup the /home tree to that box nightly via rsync (cronjob), so I tried this:
rsync -avrogz /home/ /mnt/backup/
First, drop "rog" from the options, as they are implied with -a. Also, since you are not going over a (potentially slow) network, drop the "z" as well, leaving you with just "rsync -av".
Alfred
Alfred von Campe wrote:
On Apr 7, 2008, at 13:07, Ray Leventhal wrote:
I want to backup the /home tree to that box nightly via rsync (cronjob), so I tried this:
rsync -avrogz /home/ /mnt/backup/
First, drop "rog" from the options, as they are implied with -a. Also, since you are not going over a (potentially slow) network, drop the "z" as well, leaving you with just "rsync -av".
Alfred
Hi Alfred,
Thanks for your reply. I'll do that and see what tomorrow morning brings :)
-Ray
On Mon, Apr 7, 2008 at 12:07 PM, Ray Leventhal centos@swhi.net wrote:
Hi folks,
I've been trying to wrap my head around this for a bit, done my googling and archive searching but I still can't seem to 'get' it.
Here goes:
I've a spare drive in my CentOS5.1 box, which (for testing now) I mount manually under /mnt/backup
I want to backup the /home tree to that box nightly via rsync (cronjob), so I tried this:
rsync -avrogz /home/ /mnt/backup/
All goes well, but it seems that rsync is copying the files and compressing them into an archive....both the file structure and the archive exist. Is there a flag I'm missing, or is there a better, more efficient way to get this accomplished?
rsync does not create archives. Are you sure that the archive does not exist in the source directory? Is it just being rsynced along with everything else? Perhaps it is left over from previous backup strategies. Have you opened up the archive to look at dates and timestamps?
Jeff Larsen wrote:
On Mon, Apr 7, 2008 at 12:07 PM, Ray Leventhal centos@swhi.net wrote:
rsync does not create archives. Are you sure that the archive does not exist in the source directory? Is it just being rsynced along with everything else? Perhaps it is left over from previous backup strategies. Have you opened up the archive to look at dates and timestamps?
Hi Jeff,
Right you are. In my test, I was using a subfolder of my /home/ folder and there was a .gz file in there that I didn't remember having there. By chance it was named the same as the fileset I was moving, so therein lies my confusion.
Thanks! -Ray