I also use rsync, things I exclude include: .trash/ Trash/ trash/ .cache/ cache/ Cache/ Downloads/ downloads/ tmp/ temp/ .thumbnails/ thumbnails/ .cpan/ core*
The trailing / indicates it will match any directory that ends with that text. Some of those might be holdouts from older Linux versions, I never clean the file up. Also some could be squashed with regexs. One thing you can do is use the dry-run option to get a list of files and look through it for things you don't need to backup. Hope that helps, Mike On Thu, Feb 20, 2014 at 2:19 PM, John Mort <[email protected]> wrote: > I run rsync to backup my Ubuntu machines periodically. All I grab is > /home, figuring anything else can just be reinstalled and reconfigured. > Watching the backup run today, I noticed that I'm backing up everything in > ~/.local/share/Trash is being backed up. This is both unnecessary, and > makes the backup take a lot longer than it otherwise would since I only > empty the trash when I'm running out of space. > > So I looked around and found that there's a way to set up a file listing > locations to exclude from an rsync run, and began creating such a file. I > was just wondering if anyone else backs up their machine with rsync, and if > so, what folders or files have you excluded? > > _______________________________________________ > Mid-Hudson Valley Linux Users Group http://mhvlug.org > https://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug > > Upcoming Meetings (6pm - 8pm) Vassar College > Mar 5 - 11th Anniversary Meeting - Home Network Show and Tell > Apr 2 - Nginx: High-Performance HTTP Server, Reverse Proxy, and > IMAP/POP3 Proxy Server > May 7 - Google App Engine > >
_______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org https://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) Vassar College Mar 5 - 11th Anniversary Meeting - Home Network Show and Tell Apr 2 - Nginx: High-Performance HTTP Server, Reverse Proxy, and IMAP/POP3 Proxy Server May 7 - Google App Engine
