![]() ![]() I am not sure if it’s a good idea to be running this as root…I’ll do more experiments and try to find a better solution. You will have 2 shortcuts on your desktop: FreeFileSync ( green arrows icon) and RealTimeSync ( red arrows icon). To get around this I moved the above cron job from my user to root crontab via sudo EDITOR=gedit crontab -e. In the end, for some reason, it seems like only root can delete files from my external NTFS drive….but it worked when I performed the delete manually or from the program. Instead of the ads, and after FreeFileSync has proven useful to you, please think about supporting with a donation. The FreeFileSync project is 100 dependent on ad revenue and donations to stay alive. ![]() When this script ran I received errors about “Unable to find or create trash directory.” Googling it looked like I was missing the trash dir. You can export your settings as a Batch File and then use the included RealtimeSync program to watch for changes and when it spots any at either location. FreeFileSync is Open Source software, available for Windows, macOS, and Linux. I was also successful in putting this command in a shell script and running the shell script from cron - just in case you want to do something more complicated. Also, you can specify your editor as EDITOR=gedit crontab -e if you don’t want to use vi or nano or whatever is your default bash editor. In case you don’t know, crontab -e opens the file allowing you to add or edit the user-level cron jobs. You can manually enter the folder addresses and the required. Now find and open the RealTimeSync.exe file (which is a part of FreeFileSync). To do that, open FreeFileSync and save the last session as a Batch job by clicking on the appropriate icon. Share Improve this answer Follow answered at 19:24 N0rbert 94.7k 30 225 411 Thank you, Ill try in that way. You can also create real-time file synchronization between folders with FreeFileSync. ![]() /home/joe/FreeFileSyncBackup/SyncSettings.ffs_batch is my batch file that I created and saved within the FreeFileSync program to provide full path to the FreeFileSync executable ( /home/your-username/bin/FreeFileSync) and to its job-file ( /home/your-username/bin/FreeFileSync/Sync.ffsbatch )./usr/bin/FreeFileSync/FreeFileSync is the location of the program.It has two panes Copy From and Copy To respectively. Free File Sync will always back up the most recent save to this location. XCOPY is a simple and lightweight utility for copying folders from one location to another using batch file. 0 3 * * * is the frequency that I want the cron to run, every night at 3am Creating a simple command line / batch file script within windows for.0 3 * * * env DISPLAY=:1.0 /usr/bin/FreeFileSync/FreeFileSync /home/joe/FreeFileSyncBackup/SyncSettings.ffs_batch ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |