Page 1 of 1

backup suggestion

PostPosted: 13. February 2008 01:25
by tomhung
I sure would like the backups to date in a sortable manner.
ie change the
/opt/lampp/backup/xampp-backup-DD-MM-YY.sh
to
/opt/lampp/backup/xampp-backup-YY-MM-DD.sh

I know this is against some country stand data formats... but it sure makes it nice to "ls" the backup dir and see the files grouped together in order....

this can be done my changing the following lines in
/opt/lampp/share/lampp/backup
Code: Select all
line 60:
cat /opt/lampp/share/lampp/backup.head /opt/lampp/backup/backup.tar.gz > $backupdir/xampp-backup-`date +%d-%m-%y`.sh
line 63:
echo "Take care of $backupdir/xampp-backup-`date +%y-%m-%d`.sh"

to
Code: Select all
line 60:
cat /opt/lampp/share/lampp/backup.head /opt/lampp/backup/backup.tar.gz > $backupdir/xampp-backup-`date +%y-%m-%d`.sh
line 63:
echo "Take care of $backupdir/xampp-backup-`date +%y-%m-%d`.sh"

PostPosted: 19. February 2008 15:20
by skuipers
Taking into account the obvious error in the echo line in the first block this is a very useful suggestion. I fully support the requested change.