Monday 31 October 2011

Question about using tar command

Question about using tar command

I'm having some trouble with the tar command I'm trying to backup all files that end with .config in the /etc directory and then name the backup file backup.tar

So I use this command using the wild card

tar –cvf backup.tar /etc *.config

and all it does it just backup everything in the /etc directory instead of just backing up files that end with .config and gives and error

tar: *.config: Cannot stat: No such file or directory

Not sure what I'm doing wrong

No comments:

Post a Comment