Line 91: |
Line 91: |
| <code> | | <code> |
| !/bin/sh | | !/bin/sh |
| + | |
| signal-event pre-backup | | signal-event pre-backup |
| + | |
| cd / | | cd / |
| + | |
| rclone mkdir smeserver-dropbox:backup | | rclone mkdir smeserver-dropbox:backup |
| + | |
| rclone mkdir smeserver-dropbox:backup/smeserver | | rclone mkdir smeserver-dropbox:backup/smeserver |
| + | |
| rclone mkdir smeserver-dropbox:backup/smeserver/etc/e-smith/templates-user-custom | | rclone mkdir smeserver-dropbox:backup/smeserver/etc/e-smith/templates-user-custom |
| + | |
| rclone mkdir smeserver-dropbox:backup/smeserver/etc/e-smith/templates-custom | | rclone mkdir smeserver-dropbox:backup/smeserver/etc/e-smith/templates-custom |
| + | |
| rclone mkdir smeserver-dropbox:backup/smeserver/home | | rclone mkdir smeserver-dropbox:backup/smeserver/home |
| + | |
| rclone mkdir smeserver-dropbox:backup/smeserver/ssh | | rclone mkdir smeserver-dropbox:backup/smeserver/ssh |
| + | |
| rclone mkdir smeserver-dropbox:backup/smeserver/root | | rclone mkdir smeserver-dropbox:backup/smeserver/root |
| + | |
| rclone copy -v / smeserver-dropbox:backup/smeserver --files-from backup-files-list-rclone | | rclone copy -v / smeserver-dropbox:backup/smeserver --files-from backup-files-list-rclone |
| + | |
| rclone copy -v "etc/e-smith/templates-custom/" "smeserver-dropbox:backup/smeserver/etc/e-smith/templates-custom/" | | rclone copy -v "etc/e-smith/templates-custom/" "smeserver-dropbox:backup/smeserver/etc/e-smith/templates-custom/" |
| + | |
| rclone copy -v "etc/e-smith/templates-user-custom/" "smeserver-dropbox:backup/smeserver/etc/e-smith/templates-user-custom/" | | rclone copy -v "etc/e-smith/templates-user-custom/" "smeserver-dropbox:backup/smeserver/etc/e-smith/templates-user-custom/" |
| + | |
| rclone copy -v etc/ssh smeserver-dropbox:backup/smeserver/ssh | | rclone copy -v etc/ssh smeserver-dropbox:backup/smeserver/ssh |
| + | |
| rclone copy -v root smeserver-dropbox:backup/smeserver/root | | rclone copy -v root smeserver-dropbox:backup/smeserver/root |
| + | |
| rclone copy -v home/e-smith/ smeserver-dropbox:backup/smeserver/home/ --exclude "tmp/**" | | rclone copy -v home/e-smith/ smeserver-dropbox:backup/smeserver/home/ --exclude "tmp/**" |
| + | |
| </code> | | </code> |
− |
| |
− |
| |
| | | |
| === Uninstall === | | === Uninstall === |