2
03. Script examples
Asif Bacchus edited this page 2019-07-20 19:34:29 -06:00
Table of Contents
script examples
Most common -- Defaults, custom logfile location and use 503 functionality:
./seafbackup.sh --log /var/log/seafbackup.log --use-503
Without 503:
./seafbackup.sh -l /var/log/seafbackup.log
Custom logfile, verbose output:
./seafbackup.sh -l /var/log/seafileBackup.log --verbose
Use a custom 503 error page, webroot and logfile location:
./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:
./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:
./seafbackup.sh --log /var/log/seafbackup.log -5 --offline --seahub-service 'seafileWeb.service'
Everything is custom!!!
./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!