![]() ![]() ![]() ![]() -inplace: do not make copies of files being updated ( very important for ZFS destinations).The next line clears the log file, since rsync appends to the log, which can keep growing in size.Rsync -v -a -H -h -inplace -no-whole-file -delete-delay -info=BACKUP,COPY,DEL,REMOVE,SKIP,STATS -log-file="/cygdrive/c/Users/winnielinnie/AppData/Roaming/cwrsync/rsync_to_nas_log.txt" /cygdrive/c/Users/winnielinnie/ The first line waits 15 seconds (which might be ideal if invoking this script upon waking up the computer) bin folder with the following template, change it to reflect your preferences, and name it something like rsync_to_nas.batĭEL /F /Q "%APPDATA\cwrsync\rsync_to_nas_log.txt" Setup the rsync command and options to be run when invoked on the client (Windows) This user will need read and write permissions for the dataset / directory to be sync'd on the server.ssh hidden folder has read, write, execute (rwx) permissions only for User not Group nor Other After saving these changes, double-check that the User's.Copy paste the the public key (previously generated) in the "SSH Public Key" form (or upload it to the server).Make sure to assign them a real home directory (cannot use "/nonexistent"), and give this directory read, write, execute (rwx) persmissions only for User not Group nor Other.Create a new user account (or use any existing account).Create a public/private key pair with ssh-keygen (from the cwRsync package).bin in your User's home directory this is where the. Now rsync can directly be invoked from the Command Prompt, PowerShell, or batch file (.bat) without specifying the executable or entire path.Enter or paste C:\Program Files\cwrsync\bin.This is done via Control Panel > System > Advanced System Settings > Environment Variables.Add to your User's Path the following entry: C:\Program Files\cwrsync\bin.Install it to C:\Program Files\cwrsync\.I will have this set to a delay, so that it ‘waits’ for Photo Mechanic to complete ingestion (so both programs don’t try to write the same file to the NAS during ingestion). I am now going to use Goodsync (on all 3 PCs) to automatically copy any new or changed files that are created during post-processing in the ‘working’ folder over to the NAS. So, post ingestion, I end up with the same RAW files in the local/OneDrive folder and the NAS, except when I am travelling. The secondary ingest location in Photo Mechanic is set to the NAS from workstation and laptop, and to an external USB drive for the netbook. This ‘working’ folder is automatically replicated by OneDrive across all 3 machines when they connect to the Internet and OneDrive synchronises, so, for example, if I ingest to the workstation, I can travel with the laptop and process the new images on it, as long as both machines have synced to OneDrive. This is one of the ways I back up my images from my Netbook when travelling. This means that the images are automatically backed up to OneDrive cloud immediately post ingestion. I use Photo Mechanic to ingest RAW images, with the primary destination on all 3 PCs being a OneDrive for Business folder (this is my ‘working’ folder where I do all my post-processing from the local copy on SSD). The NAS will be backed up to Amazon Glacier cloud on a schedule (it’s currently doing it’s initially back up…. All have access to a mapped drive which is a file share on a Synology NAS on my LAN. I have 3 Windows computers: a desktop workstation a laptop (main machine) and a netbook which is used when travelling to capture and store images. I will share a little more of the overall solution I am planning here as it may be useful to others (or someone can suggest a much simpler solution!). I investigated robocopy but decided that it was not for me as I was not that confident in the required /switch settings. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |