So, I've always run rsync in one direction (as most people do) Server A -> Server B (backup server). I now have a situation where I need to reverse this as some other scripts need to run before and after the rsync job. Can you simple change the running of rsync so it's running on server b instead?
So, the current set up is:
Runing on Server A:
rsync -avz --progress /local/server/path/ user@serverb:/path/to/storage
Can I change that to:
Running on Server B:
rsync -avz --progress user@serverb:/path/to/storage /local/server/path/
Am I correct in presuming the above swap will have no effect on the data being stored on Server B and that rsync will run from Server B, connect to server A and pull the data over?
Seems like a simple question but I've been working on a few bash/backup scripts recently so my brain is a bit... fried and I need fresh eyes!
So, the current set up is:
Runing on Server A:
rsync -avz --progress /local/server/path/ user@serverb:/path/to/storage
Can I change that to:
Running on Server B:
rsync -avz --progress user@serverb:/path/to/storage /local/server/path/
Am I correct in presuming the above swap will have no effect on the data being stored on Server B and that rsync will run from Server B, connect to server A and pull the data over?
Seems like a simple question but I've been working on a few bash/backup scripts recently so my brain is a bit... fried and I need fresh eyes!