Asif Bacchus 2019-07-20 19:34:29 -06:00
parent f92e5b892a
commit e6036a17d6

@ -3,17 +3,43 @@
Most common -- Defaults, custom logfile location and use 503 functionality:
```bash
./seafbackup.sh --log /var/log/seafbackup.sh --use-503
./seafbackup.sh --log /var/log/seafbackup.log --use-503
```
Without 503:
```bash
./seafbackup.sh -l /var/log/seafbackup.sh
./seafbackup.sh -l /var/log/seafbackup.log
```
Custom logfile, verbose output:
```bash
./seafbackup.sh -l /var/log/seafileBackup.log --verbose
```
Use a custom 503 error page, webroot and logfile location:
```bash
./seafbackup.sh -l /var/log/seafbackup.sh --use-503 --503-path /var/www/backup.html --webroot /var/www
./seafbackup.sh -l /var/log/seafbackup.log --use-503 --503-path /var/www/backup.html --webroot /var/www
```
Seafile data directory inside program directory (like the documentation). Just set everything to the parent directory, borg will avoid duplicates:
```bash
./seafbackup.sh --seafdir /opt/seafile --seafdata /opt/seafile
```
Backup Seafile in offline mode, custom Seahub service name, display 503 error page using defaults, custom logfile location:
```bash
./seafbackup.sh --log /var/log/seafbackup.log -5 --offline --seahub-service 'seafileWeb.service'
```
Everything is custom!!!
```bash
./seafbackup.sh --config /root/seafileBackup.settings -l /var/log/SeafileBackup.log -v -5 --503-path /var/www/seafileBackup.html -w /var/www --seaf /usr/local/bin/seafile --data /var/data/seafile -o --seafile-service 'seafileServer.service' --seahub-service 'seafileWeb.service'
```
Don't worry, if something is wrong, the script will error out and provide a pretty detailed error message to let you know what happened!