tar cjvf myfiles.tar.bz2 *.txt
tar czvf myfiles.tar.gz *.txt
tar cf filename.tar dirname
or
cd into directory tar cvf filename.tar *
tar cvf /dev/fd0 /usr/src /etc /home
home dir back up
cd /home
sudo tar czvf /tmp/homedir.tgz *
sudo tar czvf /tmp/homedir.tgz * --newer "2006-06-23"
...............................................................
tar -jxvf file.tar.bz2
tar -zxvf file.tar.gz -C /tmp
No comments:
Post a Comment