I normally use the SYNC MIRROR script commands to back up files internally from my current server locations to a backup NAS, which works wonderfully. The commands are simply:
Load <sessionname>
option confirm:yes-to-all
sync mirror: lt->rt
I have another NAS box at a remote location, to which I send data periodically as a backup from my own systems, but this is NOT working quite so well. Apparently, this particular NAS FTP server doesn't support setting the timestamps of the files via FTP. Because of this, ALL of the files on the target server have datestamps that are from the last backup -- even if they did not change on my source location.
Of course, because I use the SYNC MIRROR command, BC sees the newer dates, assumes that the files are wrong, and forces EVERY file to be copied, which increases the time (and bandwidth) for backup by quite a bit. I don't want to use UPDATE, because my in-house copy is the master, and I just want to mirror this, but I cannot use MIRROR, either, because of the timestamps.
After digging further, I think this should be able to be accomplished with a more complicated script. However, I am unsure of the EXACT script that could simulate this. I am thinking along these lines:
Load <SessionName>
Option confirm:yes-to-all
Select right.orphan
Delete right
Select left.orphan
Copy left->right
Select left.newer
Copy left->right
I know that the files on the right side will NEVER be newer, because this is a backup target only. Will this accomplish what I want? Are there any easier ways to do this?
Load <sessionname>
option confirm:yes-to-all
sync mirror: lt->rt
I have another NAS box at a remote location, to which I send data periodically as a backup from my own systems, but this is NOT working quite so well. Apparently, this particular NAS FTP server doesn't support setting the timestamps of the files via FTP. Because of this, ALL of the files on the target server have datestamps that are from the last backup -- even if they did not change on my source location.
Of course, because I use the SYNC MIRROR command, BC sees the newer dates, assumes that the files are wrong, and forces EVERY file to be copied, which increases the time (and bandwidth) for backup by quite a bit. I don't want to use UPDATE, because my in-house copy is the master, and I just want to mirror this, but I cannot use MIRROR, either, because of the timestamps.
After digging further, I think this should be able to be accomplished with a more complicated script. However, I am unsure of the EXACT script that could simulate this. I am thinking along these lines:
Load <SessionName>
Option confirm:yes-to-all
Select right.orphan
Delete right
Select left.orphan
Copy left->right
Select left.newer
Copy left->right
I know that the files on the right side will NEVER be newer, because this is a backup target only. Will this accomplish what I want? Are there any easier ways to do this?
Comment