2011-10-13, 11:54 AM
I'm looking for some different ways to backup/restore files from a remote server that I incase I mess up something really bad.
I'll be able to restore instead of having to do a full reinstall. I'll check google later.
Quote:Are you looking to remotely fire off a backup (eg: webmin) or looking to backup from one server onto another?
As Hybrid mentioned above, I'll add things like sbackup, rbackup, simple-backup etc - there are many tools that allow a backup over sftp/rsync.
Do you know how much data you seek to backup?
# cd /
# tar --same-owner -czpvf /backup/etc.tar.gz /etc
# cd /home/user/html/website
# tar --same-owner -czpvf /backup/htdocs.tar.gz htdocs
# mysqldump -u root -p -A > /backup/mysql_dbs.sql
# cd /tmp
# mkdir restore
# cd restore
# tar --same-owner -xzpvf /backup/htdocs.tar.gz
$ scp -P your_ssh_port your_username@your_server:/backup/htdocs.tar.gz htdocs.tar.gz
Quote:<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentcommentid="15227" data-ipsquote-username="Dungeon-Dave" data-cite="Dungeon-Dave" data-ipsquote-timestamp="1318524617" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="4169" data-ipsquote-contentclass="forums_Topic"><div> Are you looking to remotely fire off a backup (eg: webmin) or looking to backup from one server onto another? As Hybrid mentioned above, I'll add things like sbackup, rbackup, simple-backup etc - there are many tools that allow a backup over sftp/rsync. Do you know how much data you seek to backup?It's more for my webserver project, as in if I screw something up I can restore it. I was more thinking as in /etc files and my web data which would be in /home/user/html/website/htdocs. Right now it's not much. It's more of knowing how to do it for when I make mistakes so I don't have to reconfigure everything. And if I make a mistake on my website that's not easily undo-able so I can restore it and of course also making backups/restoring my mysql db's</div></blockquote>