[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Backup Questions.
Mike Fritsch <mfritsch@xxxxxxxxxxxx> wrote:
> I was am planning to backup /home/sites separate from /home, but I want to
> backup everything else in /home in one tar. So I would have home.tar(without
> sites) and sites.tar(without home) . The command I am using is
>
> tar cfW /home/home.tar .
>
> Can I add a command on the end to exclude /home/sites?
Pasted in from one of my home-brew backup scripts:
tar --exclude /home/mysql/data -c -v -z -f $backup_dir/backup.mysql-`date
+%Y-%m-%d-%H%M`.tar.gz /home/mysql/
BTW, this is *all* documented in "man tar". Please read it.
Steven Werby {steven-lists@xxxxxxxxxxxx}