Do you have a favorite unix command? - X Nations
      
      
Go Back   X Nations > X Nations > General Webmaster Business and Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-28-2005, 01:21 PM   #2
thruma
thruma is hard at work.(double meaning)
Senior Member
 
thruma's Avatar
 
Join Date: Aug 2004
Location: Canada
Posts: 920
xBucks: 7,558
Default

Hey monaro.
Not sure I have a fav unix command but unix/linux itself is my fave OS.

If you're doing backups have a look at the tar command and the gzip command.

you can put these into a script file and run it like a program.

sort of like a DOS batch file.

Say you have a domain called monaro.com

you could do it like this

tar -cvf monaro.com monaro-backup
cp monaro-backup new-backup-directory

then if you need to restore the backup you can just do this

cp new-backup-directory monaro-backup
tar -xvf monaro-backup

Thats without zipping it if you want to save time zipping it up

you can read the entire options for tar or any other command by typing "man tar" at the unix prompt.

Enjoy
thruma is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
2013 - xnations.com
All times are GMT -4. The time now is 09:06 AM.
Skin by vBCore.com