• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

why wont this rsync command work?

Red Squirrel

No Lifer
Doing rsync -vrbu <source> <dest>

For whatever reason, it worked once, now it work work anymore. If I change/add files in the source, it ignores them. I've also tried without the "u" and without the "b"... no matter what, its just not picking up new or changed files.
 
rsync --verbose --checksum --recursive --links --times --perms --group --owner src dest ?
You're probably failing due to the timestamps being newer at the destination and --update or whatever is the default time based sync check.

Why --backup as oppsed to just using star / tar + gzip or 7zip to archive the backup set if it isn't a huge amount of data such that a full backup over a few generations would be impractical?

You could also set up a RCS like HG / CVS on the tree for multi generation backup and revision control, or use STAR to just append subsequent backups into the same file.

I guess you can --backup --update if you want...
 
I don't want to have to transfer EVERYTHING every time. This is done via a adsl connection. So I only want to backup what changed. Both servers are synced by NTP, though they may be in different time zones.
 
ok I managed to get a variant of rsync to work using ssh function built into it. This is my command:

system(("rsync -var --rsh=\"ssh -p " + profile.sshport + " -i " + profile.sshkey + "\" " + profile.connectstr + " " + profile.backupdest).c_str());

For whatever reason, at random, it will ALWAYS copy a file whether or not it got changed. Seems to do it mostly with folders.





 
wow this is getting retarded. It's random. For certain paths it always backs up, for other paths, it never backs up, for some paths it works like it should. What is the right parameters I should be using? Tried this too: rsync --delete-during --verbose --checksum --recursive --links --times --perms

For this one folder it wont even backup anything at all!


edit: NM got it working. rsync does not do symlinks, the whole folder I was trying to backup was a symlink, but to a folder in same directory so just changed it to that. Works now I think.
 
Back
Top