Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 17th March 2011, 11:20
trexen trexen is offline
Senior Member
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
Default Aner Backup script for Ispconfig 2

I just whant to share my backupscript.
it backup all dir under /var/www/ to separate tar files whit todays date.

date=`date +%Y%m%d`

cd $work_dir
for file in `\ls -1dt web*`
echo \"$file\";
tar pczf $bkup_dir$file-$date.tgz $work_dir$file/


if you like to auto remove backup after 30 days add this into the script:

#remove old files, older than 30 days
echo "Deleting old archives from $bkup_dir"
find $bkup_dirweb* -type f -mtime +$days_to_keep -exec rm {} \;

Last edited by trexen; 17th March 2011 at 16:39. Reason: script updated
Reply With Quote
The Following 2 Users Say Thank You to trexen For This Useful Post:
Captain (17th June 2011), falko (18th March 2011)
Sponsored Links


Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup script for ISPConfig 3 datahellas Tips/Tricks/Mods 6 22nd April 2012 17:16
Cannot login to phpmyadmin penkku HOWTO-Related Questions 1 24th February 2011 10:26
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
Backup Script now Failing atjensen11 Server Operation 2 21st February 2010 17:34
Online Backup : What do you use and how do you setup it ? XZed Technical 5 4th January 2010 19:02

All times are GMT +2. The time now is 22:18.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.