Hello,
I want to do a backup of my whole system with tar to an external hard drive, mounted under /mnt.
As there are other backups on this external hd and I don't want to back them up again, I tried to exclude this hd from the backup.
I tried the exclude option of tar:
as well as an external exclude file:
The exclude file contains:
Neither of those methods worked...everything under /mnt was backed up.
Do I miss anything trivial?
I hope you can help me...
Thanks,
Nokobon
I want to do a backup of my whole system with tar to an external hard drive, mounted under /mnt.
As there are other backups on this external hd and I don't want to back them up again, I tried to exclude this hd from the backup.
I tried the exclude option of tar:
Code:
tar -cvf /mnt/backup.tar / --exclude=/mnt
Code:
tar -cvf /mnt/backup.tar / -X /var/exclude
Code:
/mnt/*
Neither of those methods worked...everything under /mnt was backed up.
Do I miss anything trivial?
I hope you can help me...
Thanks,
Nokobon