Main Page > Browse Categories > Did You Know? > You Can Copy Files 'Once Only' (from Source to Target) |
You Can Copy Files 'Once Only' (from Source to Target)
Consider the following scenario:
Files are present in a folder (the source) and they need to be copied to a target folder. Once the files are in the target folder they can be moved away by some further processing. However, even if the files in target folder are removed, the same file must not be copied again from source to target by ViceVersa.
Only if it changes in source, the same file must be copied again after the initial copy: we need to copy the files from source to target "once only".
This requirement can be satisfied by using ViceVersa in two different ways:
A) By using the ‘no rescan’ target option in ViceVersa. With this option ViceVersa does not rescan the target after the initial scan, so it does not know that the file was removed, hence it will not copy the same file again from source unless it changes after the initial copy.
This setup works fine, but it requires ViceVersa to use a tracking database, and if the tracking database is damaged or lost (unlikely), the files will all be copied again.
B) A second approach is available since ViceVersa version 3 build 3005. Making use of the Windows Archive Bit. The new option is called “Copy source files once only, using the archive bit”.
When this new option is enabled:
- ViceVersa will only copy files that have the Windows archive bit set, and exclude the rest.
- Then, once the files are successfully copied, ViceVersa will clear the archive bit so the files will not be copied again next time unless they change, even if the corresponding target file is removed from the target.
Since the archive bit is only set by Windows when a file changes or on a new file, and it’s reset by ViceVersa after copying the file when the option “Copy source files once only, using the archive bit” is enabled, this will result in a file being copied only once from source to target, unless its contents change, even if the corresponding file in target is removed.
This new option is available in profile settings -> advanced settings -> more settings and requires ViceVersa version 3 build 3005 or newer.
Related
No attachments
Did this help you?
Yes No
Statistics
58% found this information useful
Other Options
Printable Version
General Information
No. 146
Author: TGRMN Software
Download ViceVersa
Visit ViceVersa Forum
User Comments
I use your 3005 version under Linux via Wine, so I don't know if all the functionnalities work the same manner as in windows.
I tried your new "copy source files only, using archive bit" feature.
I put 2 folders as a test with 5 text documents named A/B/C/D/E, I checked that new field in the options, when deleting C file from the target, now indicating "removed" then I synched it with the source, and the C file was removed from source as well...
Same with box unchecked this time, I saw no difference in the process, C was removed from source. I don't really comprehend what this feature brings to me or I did something wrong ???
thanks for your help
This option will exclude files that have been copied once "by ViceVersa" (ver 3 build 3005 or newer) by excluding files that have the archive bit cleared and indeed the archive bit is cleared by ViceVersa upon copying the files successfully. That will result in a copy once-only operation, regardless of the corresponding target file being removed or not.
However I would advise you to make a short video (like the demo video) that you could upload to your site showing the potentiel user/buyer the benefits from all your improvments or features for a new version, that would be more telling...
As to me, if I switch from the version 3003 to 3005 whithout checking this option, will I be safe ? (I would not like to make fatal errors) I use it the simpliest way mainly to back up mirroring source to target with no archives
By the way, any chance Sha256 could replace CRC any time soon ? or a trying Linux version ?
my 2 cents
thanks
I have noticed something not really easy-going with your software about CRC option
Let's suppose I copy 99 files from Folder A to Folder B checking CRC option. All goes fine.
Ok, well if I add a new file to Folder A, and I would like to mirror it to Folder B, I cannot CRC check it alone, I have to chose to recheck again the whole 100 files. Could it be possible to kind of snapshot the 99 files and just CRC check the 1 new added ?
thanks again
The new option "Copy source files once only, using the archive bit" is completely optional, it is not required at all, it is only needed in a specific scenario to copy the source files once only in case the target files are removed by some further processing and you do not want to re-copy the source files to the target again.
Thank you for the feedback re videos, we will look into creating more videos for ViceVersa.
Re SHA: There is an option called "Use also SHA-256 hash for comparison". This will use both CRC and SHA-256.
If you only wish to compare CRC for newly copied files, and not for already copied files, leave the comparison method set to "Size and Timestamp" and enable the option "Verify copy operation by checking CRC".