Re: Time for some backups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 12 March 2004 05:37 pm, Roger Beever wrote:
> Hi.
> I have been reading the rsync man pages but am not sure what is the
> right commands to do what I require.
> I just want to back put the home directory and sub directories from one
> machine to another.

I use rsync to basically make a copy / mirror of /home directory from one 
machine to another. This should do it:

rsync -avzu -e ssh user@xxxxx:/home /backup_dir/

If you run that from a1.net, for the first time run, this will copy the home 
directory of a.net to /backup_dir/ in a1.net. Subsequent run will only copy 
the new files, or updated files in a.net /home directory. That's the beauty 
of rsync.

Make sure 'user' has permission to read /home, so you may want it to login as 
root.

You can also set that as a cron job, but you may need to use SSH key so that 
you don't need to login, here's how (there are many other similar HOWTO):
http://marc.theaimsgroup.com/?l=redhat-list&m=105060028415011&w=2

Right now I'm taking a look at mondo (mondorescue.org), planning todo it 
tomorrow. It seems to be a good solution for regular backup.

Hope that helps.

RDB
-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
---------------------------------------------------------
"To be a nemesis, you have to actively try to destroy 
something, don't you? Really, I'm not out to destroy 
Microsoft. That will just be a completely unintentional 
side effect."
                 - Linus Torvalds -


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux