I am using the sync command for cloning my files to the other side (local to sftp) It works great and I like it a lot, more than Rsync.
Is it possible to run
sync for real only if there is acertain file in the source folder? The reason is that I want to put this in a cron job and I want to make sure that I am not wiping out the target. These are mounted bacups so they always have backup conf files there.
hello and welcome to the forum,
it should be easy to write a batch script that looks for a file on the local file system and if the file exists, then run rclone
if exist c:\test\file.txt goto yesfile
rclone sync c:\test sftp:
Thanks I will see how I can do that with Bash.
ls /path/file && rclone command....
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.