tar 的整理連結 keyword:
1.111.5 Maintain an effective data backup strategyhttp://phorum.study-area.org/viewtopic.php?t=26270&highlight=%C0%C9%AE%D7+usr+etc+bin#tar -cvf home.tar /home
#tar -xvf home.tar [ file to extract ]
#tar -tvf home.tar
#tar tf /dev/st0
#tar xvf /dev/st0
#tar xvf /dev/st0 /etc/hosts
regarding to /dev/st0
#mt -f /dev/nst0 fsf2 #forwar 2 tarfile to the third tar
#mt -f /dev/st0 offline #reject the tape
#ls -l /dev/tape #view the real instrument of /dev/tape
#ln -s /dev/st0 /dev/tape
#tar cvzf /dev/fd0 -V "root home dir" /root
#tar cvzf /dev/hdd -V "root home dir" /root
#tar -zcvf home.tar.gz /home #use gzip to zip
#tar -jcvf home.tar.bz2 /home #use bzip2 to zip
#tar -Pcvf home.tar /home #use the absolute path, if you extract the contents may be overwrite the now directory
#tar -cvfM /dev/fd0 1440 /home #cut the file to fix the floppy
------------------------------------------------------------
incremental backup =level 2(Mon),3(Tue),4(We),5(Thu)
differential backup =level 1 (2nd 3rd 4th Fri)
system backup ==level 0 (1st 5th Fri)
incremental :
#tar -N $(date -d "yesterday" +"%Y-%m-%d")
differential :
#tar -N $(date -d "last Friday" +"%Y-%m-%d")