![]() Use OPT or OPT1 for level 1 output, OPT2 for level 2, etc. Something like this might work: cd /home/username/ mkdir scripts cd scripts nano grsyn. You have another information that can be helpful in your log file: $ -> rsync -info=help You can create a script that runs the grsync command instead of running it directly, and then put some commands that check to see if the volume is mounted before running the grsync command (or just run the mount check commands manually, that works too). This could also be helpful: Is it possible to make rsync make a log-file on a remote system? Or you can use "-log-file=filename -q" It has more information: cat resultġ 22:20:47 make_file(Example,*,0)ġ 22:20:47 total: matches=0 hash_hits=0 false_alarms=0 data=0ġ 22:20:47 sent 61 bytes received 12 bytes 146.00 bytes/secġ 22:20:47 total size is 0 speedup is 0.00ġ 22:20:47 _exit_cleanup(code=0, file=main.c, line=1196): about to call exit(0) Then, if I wanna move the file from source/Example to destination and dump the result in the result file, e,g: rsync -avz source/Example destination/ -log-file=resultġ 22:09:04 sent 101 bytes received 35 bytes 272.00 bytes/secġ 22:09:04 total size is 0 speedup is 0.00 This allows for logging but also for entering the passphrase. This is perfect for my case where Im rsyncing with ssh and a key that requires a passphrase. So in my case it was simply redirecting as follows: 2> /output.log > /output.log. log-file=FILE log what we're doing to the specified FILE In the end the only thing that worked was to swap the output as suggested here. Grsync provides a user-friendly point-and-click interface to rsync for users that are less fond of using a shell. It can be used both on local folders or over the internet. Grsync is able to efficiently propagate changes between two copies of a folder by sending only the differences. #Grsync log manual#In the manual entry: $ -> man -P cat rsync | grep 'log-file=FILE' Grsync is a graphical front-end to the venerable rsync command-line folder synchronization tool. The rsync command has the -log-file option. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |