Quantcast
Channel: deleting directory with large amount of files with rsync -a delete - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Meaulnes for deleting directory with large amount of files with...

according to linuxnote.net's webarchive is rsync -aP –delete empty/ ./dir the fastest way to delete large directories, about three times faster as with rm -rfv ./dir or with find b/ -type f...

View Article



Answer by MisterSeajay for deleting directory with large amount of files with...

The --delete switch deletes files from the destination that do not exist in the source. If you want to delete crmlogs, you need to be copying from a source that does not contain that directory. Your...

View Article

deleting directory with large amount of files with rsync -a delete

I have a directory called crmlogs, how do I use rsync -a --delete to delete it?mkdir emptydirrsync -a --delete ./emptydir ./crmlogs

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images