troubleshooting Question

rsync transfer logging and leaving certain folders after sync....

Avatar of willlandymore
willlandymoreFlag for United States of America asked on
LinuxLinux Networking
14 Comments1 Solution490 ViewsLast Modified:
I have rsync running and I'm using the --delete-source-files in the script so after the transfer is done it gets rid of the files in the source folder. However, if I wanted to get rid of everything but then leave say 'folder1' and 'folder2' in there permanently, how do I make exceptions like that with the delete?
Also, if I want to turn on transfer logging so it shows what files were sent across successfully and then write it to a file, is that possible?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros