Hello,
How i can add a new Schedule Task for BackUp ???
Thanks In Advance
Giorgos
How i can add a new Schedule Task for BackUp ???
Thanks In Advance
Giorgos
This section is an archive with no posting allowed. The software represented in this forum is no longer supported or updated. If you need help upgrading to a newer version of vBulletin please open a support ticket. You can also post in the section supporting the upgrade version you're planning to use.
We are sorry for any inconvenience this may cause.
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Useful Links for Guests:
If you are having problems posting in the relevant areas for your software, please see this topic.
#!/bin/bash # backup.sh - Creates an archived database backup # Alfarin 20050417 SessionStamp=$1 DateStamp=`date +%A` BK_FILE="DB_Backup_"$DateStamp"_"$SessionStamp".sql" BK_ARCH="DB_Backup_"$DateStamp"_"$SessionStamp".tar.bz2" DIR="/home/[b]YourCpanelUsername[/b]/backup" mysqldump --opt -u [b]DatabaseUsername[/b] -p[b]DatabasePassword[/b] [b]DatabaseName[/b] > $DIR"/"$BK_FILE tar -cvjf $DIR"/"$BK_ARCH $DIR"/"$BK_FILE rm -rf $DIR"/"$BK_FILE
#!/bin/sh # Backup description fdesc='FORUMNAME' # Backup filename fname='BACKUPNAME' # Destination directory (with trailing slash) fdir=BACKUPDIR # Database Settings: fdb=DBNAME fuser=DBUSERNAME fpw=DBPASSWORD echo "Backing up $fdesc database..." tempname=$fdir$fname-`eval date +%Y-%m-%d`.sql mysqldump --opt -quick -u$fuser -p$fpw $fdb > $tempname echo "Gzipping $fdesc database..." gzip $tempname a=`eval date +%d` a=`expr $a - 2` echo "Deleting old backups... (Error messages are normal)" tempname=$fdir$fname-`eval date +%Y-%m-`$a.sql.gz rm $tempname tempname=$fdir$fname-`eval date +%Y-%m-`0$a.sql.gz rm $tempname
Comment