Jump to content

Using about rsync flags!


iZeus83

Recommended Posts

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
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
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...