Forum Moderators: bakedjake

Message Too Old, No Replies

Littel regex to tar ~/

need to back up but am hopeless at regex

         

Nick_W

3:28 pm on Jun 13, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi everyone,

I'm going to upgrade to RH7.3 tommorow and need to tar my home dir including the dot-files.

Can someone help me with the regex for that?

Many thanks

Nick

David

5:20 pm on Jun 13, 2002 (gmt 0)

10+ Year Member



I am playing with this today also. Moving to a new box. Just tested this

tar czvf /backup/myhome.tar.gz /home/David/

The target directory /backup must exist.

This will create a backup of everything in the directory called myhome.tar.gz.

Nick_W

6:16 pm on Jun 13, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ahhhhhhh...... brilliant!

I asked once how to cp all my dot files to a dir and the answer required some regex. I just had it in my head that I needed to do it that way again.

What a fool, your solution is of course obvious once my brain is in gear ;)

Cheers

Nick