Welcome to WebmasterWorld Guest from 54.227.6.156

Forum Moderators: bakedjake

Message Too Old, No Replies

Littel regex to tar ~/

need to back up but am hopeless at regex

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

Senior Member

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 4, 2002
posts:5044
votes: 0


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

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

Preferred Member

10+ Year Member

joined:Oct 26, 2000
posts:414
votes: 0


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.

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

Senior Member

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 4, 2002
posts:5044
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members