Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Search this Thread
Old 04-22-2005, 11:21 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 17

Rep: Reputation: 0
backup script

I have a small script for backing up website data. The following is the script

# eg : sourcedir="/usr/local/psa/home/vhosts"
#sourcedir="Put in the path of the source folder"

# eg : backupdir="/backupdrive"
#backupdir="Put in the path of the destination folder"

for i in `ls $sourcedir`
tar -cpzf $backupdir/$i.tar.gz $sourcedir/$i --exclude "$sourcedir/logs"

Can anybody tell me how will the above script work.

Old 04-22-2005, 11:31 AM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Why don't you go ahead and run the script, then let us know how it works?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup script raptorman Programming 4 08-22-2005 09:52 AM
What backup script do you use? buldir Linux - Software 1 04-12-2005 02:57 PM
Need a backup script enygma Linux - General 5 11-04-2004 03:49 PM
help with backup script dennis_89 Linux - Networking 2 06-29-2004 09:47 AM
Backup Script imsajjadali Linux - General 7 01-28-2004 03:30 PM

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration