On Tuesday 13 May 2003 01:04, Bob S. wrote:
On Sunday 11 May 2003 15:21, Thomas Jones wrote:
..................<delete a whole buncha stuff>.................
Here's a quick how-to for newbie backups:
It's always better to do the following options:
% tar cvfC "/usr/local/backups/archive{`date +%D`}.tar" /home/bob
Not exactly a "newbie" but certainly without formal training. (learning on the fly) Don't know what the {date+%D} should represent, even after reviewing man date.
you use the following: { and } specify that the contents need to be evaulated. Meaning it is a command, a variable, etc...... Obviously, this one is a command. if you issue this command at your shell, the you get: tjones@suse:~> date +%D 05/13/03 tjones@suse:~> date +%Y-%m-%d 2003-05-13 tjones@suse:~> etc.........this will just replace the command with the appropriate date and/or time group that you specify via the '+%whatever' switches.
<deleted>
All well and good and understood. Sooooo.... in my case, where I want to back up and protect my"home directories", and then choose what I want to keep, what would I do?
Bob S.
tjones@suse:~> tar tvf archive.tar ...will list verbosely all the files archived and: tjones@suse:~> tar xf archive.tar filename ....will extract that file. Be sure that specify any directories located within the archive file or it won't find it......ie....../dir1/subdir1/filename I suggest combining both commands and using grep to find the file by using this approach [this example was found in the UPT 2.0 book by o'reilly ----- ;) ]: tjones@suse:~> tar xf archive.tar `tar tf archive.tar | grep filename` HTH. -- Thomas Jones Linux-Howtos Administrator