Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am making 2 identical offsite backup servers that are using SSH+CRON+Rsync to backup alot of data from our hosted server. I already have one made and fully functional.....I am setting up the second one and just wanted to know if I can copy all the data from the first backup server to the second one before pointing its Rsync at the main server???? Or will it redownload everything from the hosted server since the files might not appear to be the same to Rsync?
rsync does not have a 'magical' database of what is copied, it just copies files. So your first idea is valid. Copy from 1st backup to 2nd backup and you can send the 'master' server files to 2nd backup.
rsync does not have a 'magical' database of what is copied, it just copies files. So your first idea is valid. Copy from 1st backup to 2nd backup and you can send the 'master' server files to 2nd backup.
my backup servers are pulling from the main server(the server is not pushing to the backups)
Essentially, rsync checksums src and target and sends diffs.
For brand new files of course, diff = 100%; everything else will be 'less'.
Just ensure you have all the metadata (eg ownerships, perms etc.) the same if that is what you normally specify in the current backups.
Agree with Chris on this, rysnc will just check for difference.
The best way for you to experiment is to simulate your scenario with a few files, then do an rsync. Check the files and see if it is what you expect to behave.
Of course, your provide the rsync options properly. rsync -ravzhX this would be ideal I think. man rsync to check rsync parameters.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.