Froxlorbackup/README.md

27 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2014-02-25 19:14:18 +00:00
Froxlorbackup
=============
2014-09-08 09:14:13 +00:00
Backup your Froxlor Webhosting (or anything else) to another server. Encrypted, via ssh.
2014-02-25 19:14:18 +00:00
2014-09-08 09:14:13 +00:00
Works for all versions.
2014-09-08 09:14:13 +00:00
0. install duplicity and all required packages
2015-03-06 07:56:53 +00:00
1. copy the script to the froxlorserver and run it as `/$PATH/backup-server.sh full`
2. Add a cronjob like `17 2 * * * /$PATH/backup-server.sh`
2014-09-08 09:14:13 +00:00
3. Let the magic happen
2014-04-15 19:23:55 +00:00
2014-09-08 09:14:13 +00:00
You can restore your data with
2015-03-12 07:32:56 +00:00
`duplicity -t nD --file-to-restore relative/neddedFile $EXTERNALPATH/TO//media/mount/duplicity/ /where/to/save/now`
| Parameter | Description|
| ------------- | ------------- |
| `-t nD` | The version from how much days in the past should be recovered? |
| `relative/neddedFile` | Where, relative from the next parameter is the file in the backup? |
| `$EXTERNALPATH/TO//media/mount/duplicity/` | Where are the duplicity-files stored on the external storage? |
| `/where/to/save/now` | Where should the recovered file saved to (must not exist)? |
Example:
`duplicity -t 8D --file-to-restore apache2/sites-available/site.conf ssh://backup@hostname2.domain.tld//home/hostname1/etc /home/user/site.conf`
If you execute this on the machine where you want to restore an eight days old `/etc/apache2/sites-available/site.conf` from the external machine `hostname2.domain.tld`, then the recovered file will be saved in `/home/user/site.conf`