In creating a backup script I realized I don't know how to tar recursively - what is the command for that?
not sure about TAR but have you checked the MAN pages?
tar -cvzf <archivename> <dir>
Last edited by Jordan; 09-08-2006 at 09:07 AM.
Well
you have to visit the man page
the command tar will group the files in one file recursively
so
#tar -cvzf filename.tar /home/shuaib
filename.tar is the created file and has the data
/home/shuaib is the targeted files in other words the files you want to backup
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks