iZeus83 Posted November 1, 2018 Share Posted November 1, 2018 Greetings! Hi guys, I need help with this command. I need to transfer some folders and files from one server to another and then delete items from first server as a SOURCE on a local system and not on a diferent network. I think the flag -delete from rsync will do that, so its true? thanks all. Link to comment
JorgeB Posted November 1, 2018 Share Posted November 1, 2018 1 hour ago, iZeus83 said: I think the flag -delete from rsync will do that, so its true? --delete will delete files on the destination that don't exist on source, if I'm understanding your question correctly you want --remove-source-files, this deletes files on source after they are successfully transferred to the destination. Link to comment
iZeus83 Posted November 1, 2018 Author Share Posted November 1, 2018 41 minutes ago, johnnie.black said: --delete will delete files on the destination that don't exist on source, if I'm understanding your question correctly you want --remove-source-files, this deletes files on source after they are successfully transferred to the destination. Some time ago, I used this flag but this time I forgot to use it. Thanks to remember me johnnie. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.