LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-08-2018, 12:21 PM   #1
markie83
LQ Newbie
 
Registered: Dec 2009
Posts: 27

Rep: Reputation: 0
Question silly rsync question


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?
 
Old 02-08-2018, 03:13 PM   #2
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
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.
 
Old 02-08-2018, 03:22 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
https://www.tecmint.com/copy-files-t...linux-servers/

Pscp – Transfer/Copy Files to Multiple Linux Servers Using Single Shell
 
Old 02-08-2018, 03:29 PM   #4
markie83
LQ Newbie
 
Registered: Dec 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ludist View Post
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)
 
Old 02-08-2018, 09:14 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Same difference

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.
 
Old 02-09-2018, 03:28 AM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,149

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
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.

Check out this link: http://www.admin-magazine.com/Articl...nc-for-Backups


Don't try anything at the production level, unless you have done some testing. Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync with --link-dest: Question about interrupted rsync session bvz Linux - Server 9 09-10-2016 11:31 AM
Silly question, but here goes BrianD18 Linux - Newbie 5 03-23-2005 08:53 AM
silly question NePt Mandriva 5 02-21-2005 03:31 PM
Silly Question Crashed_Again Linux - General 21 04-07-2003 05:08 AM
Sorry for such silly question anandc Linux - Newbie 3 03-11-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration