backup_diff.sh, backup_full.sh: Cleaned up for publication, added rsync transfer...
authorMegaBrutal <code+git@megabrutal.com>
Wed, 2 Sep 2015 20:32:55 +0000 (22:32 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Wed, 2 Sep 2015 20:32:55 +0000 (22:32 +0200)
commit51b282d82d08b095a3826d44e444464bd2eeaf0a
tree93ad80555149be0ac21951578cf84bd4f141f8aa
parent9ec1d5004911a56e6853d3bff2ac5306013dfbc5
backup_diff.sh, backup_full.sh: Cleaned up for publication, added rsync transfer mode

- Moved hard-coded data to separate config file.

- Now it is configurable how to transfer backup files to a remote server:
it is possible by scp or rsync, or to not transfer them at all.
The backup directory may be mounted from a remote server by NFS or other method,
in which case there is no need to transfer the files by scp or rsync.

Note however, backup_full.sh purges the backup directory, because it is assumed
that the files have already been transferred to a remote location.

modified:   fs/backup_diff.sh
new file:   fs/backup_fsdiff.conf
modified:   fs/backup_full.sh
fs/backup_diff.sh [changed mode: 0644->0755]
fs/backup_fsdiff.conf [new file with mode: 0644]
fs/backup_full.sh [changed mode: 0644->0755]