0

Removing source files after send to destination in Linux

I need to move the files from one machine to another, It could be done either by SCP or RSYNC. Which will be the better one and also once it moved successfully to the destination, those files should be removed.

Rsync Linux Add a comment
nicholas
asked Feb 09 2017

Answer

0

rsync can delete files after transfer it. With the Option -e ssh is your transfer also secure ...

Here is an example: rsync -avr --remove-sent-files -e ssh user@server.com:/backup/ /volume1/daten/backup/

Add a comment
ascotlx
asked Feb 08 2017
edited Oct 05 2018
Post your Answer