I'm creating a backup log for the two rsync commands I'm using to backup my two shares to an exteal drive. The rsync command is working fine. I just want it to output to a text file. I'd like it to append to the file if it exists or to create it if it doesn't exist.
From my very brief research I need something akin to ' >>/var/log/diame/filename' appended (after a space) after the rsync command. However, when I run that it tells me that the file I'm outputting to doesn't exist. I'm using sudo for the rsync, so it's not a matter of rights. Something tells me that I need an additional parameter/symbol in order to tell the system to create the file if it doesn't exist.
Input? Thanks!
- - , .
برچسب:
نویسنده: استخدام کار