Shell script for transferring files from one server to another server.
Folder wise recursively transfer option from server to server on local network.
For Eg :- var/spool/asterisk/monitor_0/ files copy to another server with all folder and sub-folders print.
Hi Anuj.
Try use duplicity i know that is best, for you.
duplicity have more possibility to backup and sync folders and files.
Why don’t you use rsync for that?!
rsync -avR --progress /var/spool/asterisk/monitor_0/ server2:/monitor
It will copy all files and folders in the path specified to the second server to the /monitor
You can add this command to the cron to automatically copy all new files in the future.
It’s a common practice.
1 Like