M
M
m00nkey2014-10-30 10:31:51
linux
m00nkey, 2014-10-30 10:31:51

How to remove extra files with rsync?

Greetings!
Guys, can I use rsync to delete files that have already been deleted from the source?
And then he adds new ones, changes the existing ones, but does not delete them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2014-10-30
@m00nkey

man rsync
...
     --del                   an alias for --delete-during
     --delete                delete files that don't exist on sender
     --delete-before         receiver deletes before transfer (default)
     --delete-during         receiver deletes during xfer, not before
     --delete-after          receiver deletes after transfer, not before
     --delete-excluded       also delete excluded files on receiver
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question