|
@@ -21,7 +21,15 @@ Also it's:
|
|
* Encrypt backup (gpg2)
|
|
* Encrypt backup (gpg2)
|
|
|
|
|
|
## Instalation
|
|
## Instalation
|
|
-`# cp backup-server /usr/local/bin/backup-server`
|
|
|
|
|
|
+`# curl "https://code.castanedo.es/guzman/backup-server/archive/2.0.tar.gz" | tar -xz`
|
|
|
|
+
|
|
|
|
+`# cp ./backup-server/backup-server /usr/local/bin/backup-server`
|
|
|
|
+
|
|
|
|
+`# cp ./backup-server/scripts/cron.d/backup-server /etc/cron.d/backup-server`
|
|
|
|
+
|
|
|
|
+`# rm -R ./backup-server`
|
|
|
|
+
|
|
|
|
+Edit `/etc/cron.d/backup-server` to automatic backups as desired.
|
|
|
|
|
|
## Usage
|
|
## Usage
|
|
`# backup-server [options]... -z|-j|-J|-7 [backupdir]`
|
|
`# backup-server [options]... -z|-j|-J|-7 [backupdir]`
|
|
@@ -99,13 +107,13 @@ Also it's:
|
|
* Default: false
|
|
* Default: false
|
|
|
|
|
|
###### GOGS Options:
|
|
###### GOGS Options:
|
|
-* ``--gogs-dir dir`: set GOGS Git Repository to backup
|
|
|
|
|
|
+* `--gogs-dir dir`: set GOGS Git Repository to backup
|
|
* Default: /opt/gogs
|
|
* Default: /opt/gogs
|
|
* `--no-gogs`: disable gogs backup
|
|
* `--no-gogs`: disable gogs backup
|
|
* Default: false
|
|
* Default: false
|
|
|
|
|
|
###### Other Options:
|
|
###### Other Options:
|
|
-* -h, --help: shows this message and exit
|
|
|
|
|
|
+* `-h`, `--help`: shows this message and exit
|
|
|
|
|
|
## Examples
|
|
## Examples
|
|
* `backup-server --xz -k ABCDEFG -p backup-example.com --no-sql /var/backup`
|
|
* `backup-server --xz -k ABCDEFG -p backup-example.com --no-sql /var/backup`
|