Excluding files from tar
This is what I use to backup the public_html of a site on Virtualmin:
tar -czf site-backup-`date +%Y-%m-%d,%Hh%M`.tar.gz ./public_html/ --exclude "./public_html/stats" --exclude "./public_html/awstats*"
Just another Yipp.ca Blogs site
This is what I use to backup the public_html of a site on Virtualmin:
tar -czf site-backup-`date +%Y-%m-%d,%Hh%M`.tar.gz ./public_html/ --exclude "./public_html/stats" --exclude "./public_html/awstats*"
Recent Comments