Ask questions and share hosting deals.
New here? Register and read our Community Rules. Accounts are approved by hand.
I'm trying to see if I can locate a script that will backup all MySQL databases and all files located in /var/www over either FTP or SSH. Any recommendations?
As far as I know @Aldryic and many others use:
http://sourceforge.net/projects/automysqlbackup/
Francisco
+1 for automysqlbackup
automysqlbackup is basically all you need... :-)
i used phpmybackup years back
Does automysqlbackup also backup files? I would like to backup the /var/www directory as well.
@gsx said: Does automysqlbackup also backup files? I would like to backup the /var/www directory as well.
No, it just backs up MySQL databases.
Look at tar or rsync/rsnapshot if you want to backup files.
Simplest method: 1. tar -czvf backup.tar.gz /var/www/ 2. Move backup.tar.gz somewhere safe
:-)
By itself, it only does SQLdumps. However, it supports pre- and post- run scripts, so you could easily add in directory backups yourself.
Comments
As far as I know @Aldryic and many others use:
http://sourceforge.net/projects/automysqlbackup/
Francisco
+1 for automysqlbackup
automysqlbackup is basically all you need... :-)
i used phpmybackup years back
Does automysqlbackup also backup files? I would like to backup the /var/www directory as well.
No, it just backs up MySQL databases.
Look at tar or rsync/rsnapshot if you want to backup files.
Simplest method:
1. tar -czvf backup.tar.gz /var/www/
2. Move backup.tar.gz somewhere safe
:-)
By itself, it only does SQLdumps. However, it supports pre- and post- run scripts, so you could easily add in directory backups yourself.