backup suggestion

Problems with the Linux version of XAMPP, questions, comments, and anything related.

backup suggestion

Postby tomhung » 13. February 2008 01:25

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"
tomhung
 
Posts: 4
Joined: 30. August 2006 20:57

Postby skuipers » 19. February 2008 15:20

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.
skuipers
 
Posts: 102
Joined: 21. January 2005 16:27
Location: The Netherlands


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 124 guests