Hi, i create litle bash script for remote backup my hosting server. Script is executed form my home linux server and backup files and database from remote server. here is link for script: Remota backup linux server
Thanks for the script. May if we integreat this in the Configpanel, the customers could make her own backup. They could download it to their pc or send per ftp to their other ftp server. And when we have a backup import, we do not have any supporttime... admins
I mount my win2003 server on /mnt/servername, so I should be able to backup to this folder. I would like to run this script on the server where the script is installed on. (Because with this script you need 2 servers right?) I don't want to remote backup a server, what should I change in the script? I hope it's clear what I would like to do. Or is there an other script available to backups the local server/ispconfig/db's? Rudolf.
I think this doesn't work on ubuntu. I get this error: This means the script will start at 2.02am every day right? Cheers, Rudolf.
depend what you need. if you need database restore then copy mysqldump files to server and execute: Code: bzip2 -d name_of_mysql_dump.bz2 mysql -uusername -ppassword < mysq_database_dump.sql note: this will replace database on server for files restore: copy all *.tar.bz to server, starting with Monday (because Monday is full backup, and rest days are only incremental of day before till sunday which is last day of week) best way is to extract to temp directory and then move to right location, you can chose which files you need to restore. to extract file to /ispconfig_restore: copy all files to /ispconfig_restore folder and extract one file a time starting with FULLbackup: Code: tar -xvif name_of_archive_FULL.tar.bz2 -C /ispconfig_restore and then for Tuesday Code: tar -xvif name_of_archive_Increment_2.tar.bz2 -C /ispconfig_restore for wensday: Code: tar -xvif name_of_archive_Increment_3.tar.bz2 -C /ispconfig_restore and all files are restored into /ispconfig_restore directory. and you can move files to original location. If you need files from (monday) just extract FULL archive. I hope you will manage to restore
Hello, How can I change Monday as a Full backup day, can I change it? And how is the best way to move the files to the correct dirs after I unpacked the files in a temp dir? Tnx, Rudolf.
I don't understand? Monday is first day of week on linux system. if you want to restore whole directory, just move whole directory do system / directory or just copy/move one file which you need to restore.
I'm having some issues with my server and want to begin from scratch. I learned a lot and want to prevent this by reinstallation. So I wanted to reinstall my server today and thought maybe it's a good idea and easier to make a full backup today before my reinstallation of the server. But no problem I will wait untill next week to reinstall the server. Or do it later and use the incremental backups. Tnx, Rudolf. (A linux Noob
One other thing/question: When I do this reinstallation of my server what's the correct procedure to get back my settings of ispconfig (like sites, email settings, clients etc)? Can you give me some tips? Rudolf.
Dear Franz, Thank you so much for this wonderful script, doing exactly what I've been looking for.. One tweak is needed tho, Since my remote server is set to "PermitRootLogin no", im unable to log-in as root and running the script under different user output lots of "Premission denied".. Can this script somehow be tweaked to use sudoer in order to gain root access? Thanks a bunch in advance!