Quantcast
Channel: Using rsync to only delete extraneous files - Server Fault
Browsing all 4 articles
Browse latest View live

Answer by Joril for Using rsync to only delete extraneous files

You need --existing too: rsync -r --delete --existing --ignore-existing /home/gallery/images /home/gallery/thumbs From the manpage: --existing, --ignore-non-existing This tells rsync to skip creating...

View Article



Answer by Tom Shaw for Using rsync to only delete extraneous files

I don't think rsync is the best approach for this. I would use a bash one-liner like the following: $ cd /home/gallery/thumbs && find . -type f | while read file;do if [ ! -f "../images/$file"...

View Article

Using rsync to only delete extraneous files

What's the best way of comparing two directory structures and deleting extraneous files and directories in the target location? I have a small web photo gallery app that I'm developing. Users add...

View Article

Answer by JohnM for Using rsync to only delete extraneous files

I have to transfer a large amount of data and many files. I have used msrsync to parallelise the rsync streams which works well but you cannot use rsync option '--delete' with msrsync as the multiple...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images