Sync but not delete a certain folder,sync and delete normally the rest..
Hi
I got a script running moving recordings from 1 raspberry pi to another..
script looks like this:
This is working fine for synchronizing my files but I want to add -delete function to source..that also works fine but problem is I want to exclude a folder and it's content from being deleted but still want it to synchronize so not sure how to create a filemask to exclude this folder from being deleted after sync..I understand that a normal filemask will eventually even exclude the folder from being sync..
Thanks for any help..
I got a script running moving recordings from 1 raspberry pi to another..
script looks like this:
option batch abort option confirm off open sftp://xxx:xxx@xx.xx.xxx.xx/ -hostkey="ssh-xxxxxxxxxxxxxxxxxxxxxxxxx=" synchronize local \\192.168.0.5\hdd\Tv_Shows_Recordings /var/media/usb128/recordings exit
Thanks for any help..