Quantcast
Channel: rsync delete folders from destination if does not exists in source - Super User
Browsing latest articles
Browse All 2 View Live

Answer by Nasir Riley for rsync delete folders from destination if does not...

You can use: rsync -avhH --delete /src/dir /dest/dir/ That will delete any files in the destination directory on that don't exist in the source directory. As for the rest of the switches a uses archive...

View Article


rsync delete folders from destination if does not exists in source

Whilst I take a backup I want to delete from the Hard disk that I store the backup folders that does not exists on source in order to keep my backup minimum. In the source I have lots of junk files...

View Article

Browsing latest articles
Browse All 2 View Live