I'm trying to exclude a sub directory in /root with
The sub directory I want to exclude is /root/.acme.sh - which I have a separate backup for.
This is what I have:
But I'm always get the following error:
I have tried the following, with no luck:
Thanks,
tar --exclude.The sub directory I want to exclude is /root/.acme.sh - which I have a separate backup for.
This is what I have:
Code:
# tar –cvf --exclude='.acme.sh' /var/backup/root-`date +'%Y-%m-%d'`.tgz /root/
But I'm always get the following error:
Code:
tar: --exclude=.acme.sh: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
I have tried the following, with no luck:
Code:
--exclude='./.acme.sh'
--exclude='.acme.sh'
--exclude='/root/.acme.sh'
Thanks,