From 801366d7815d409b7334f5d0e73a7def45377dea Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Wed, 15 Oct 2014 00:34:20 +0200 Subject: [PATCH] Re-add /bin to chroot mounts --- README.md | 2 ++ install.sh | 2 +- server/etc/fstab | 1 + server/etc/fstab_synology | 1 + server/etc/fstab_ubuntu | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e03bd7a..cf91480 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ The optional third parameter specifies the path to the SSH public key file which rs-backup-suite can chroot backup users into the backup home base directory. For this to work you need to create a few bind mounts. The install script already created the respective lines in your `/etc/fstab` for you. If you don't need any special configuration on your system, all you need to do is to uncomment everything between the `BEGIN` and `END` lines (do NOT change these two lines, though): # BEGIN: rs-backup-suite + #/bin /bkp/bin none bind 0 0 #/lib /bkp/lib none bind 0 0 #/dev /bkp/dev none bind 0 0 #/usr/bin /bkp/usr/bin none bind 0 0 @@ -165,6 +166,7 @@ To run the server component on Synology DSM, you need to install the following p If you want to run your backups in a chroot environment please note that `/etc/fstab` will be reset to its defaults when rebooting the disk station. To avoid configuration loss, no mount directives are added to `/etc/fstab` by the install script. Instead the following entries are added to `/etc/rc` (which won't be overwritten upon reboot): # BEGIN: rs-backup-suite + #mount -o bind /bin /var/services/homes/bin #mount -o bind /lib /var/services/homes/lib #mount -o bind /dev /var/services/homes/dev #mount -o bind /usr/bin /var/services/homes/usr/bin diff --git a/install.sh b/install.sh index 6f41bb8..5ee7c24 100755 --- a/install.sh +++ b/install.sh @@ -124,7 +124,7 @@ if [[ $MODE == "install" ]]; then echo "Creating backup directory structure at '$BKP_DIR'..." - #$MKDIR "$BKP_DIR"/bin + $MKDIR "$BKP_DIR"/bin $MKDIR "$BKP_DIR"/dev $MKDIR "$BKP_DIR"/etc $MKDIR "$BKP_DIR"/lib diff --git a/server/etc/fstab b/server/etc/fstab index eafd4f3..746af88 100644 --- a/server/etc/fstab +++ b/server/etc/fstab @@ -1,4 +1,5 @@ # BEGIN: rs-backup-suite +#/bin ::BACKUP_ROOT::/bin none bind 0 0 #/lib ::BACKUP_ROOT::/lib none bind 0 0 #/dev ::BACKUP_ROOT::/dev none bind 0 0 #/usr/bin ::BACKUP_ROOT::/usr/bin none bind 0 0 diff --git a/server/etc/fstab_synology b/server/etc/fstab_synology index 94bf5e3..fde6580 100644 --- a/server/etc/fstab_synology +++ b/server/etc/fstab_synology @@ -1,4 +1,5 @@ # BEGIN: rs-backup-suite +#mount -o bind /bin ::BACKUP_ROOT::/bin #mount -o bind /lib ::BACKUP_ROOT::/lib #mount -o bind /dev ::BACKUP_ROOT::/dev #mount -o bind /usr/bin ::BACKUP_ROOT::/usr/bin diff --git a/server/etc/fstab_ubuntu b/server/etc/fstab_ubuntu index b6f83ff..0c5213b 100644 --- a/server/etc/fstab_ubuntu +++ b/server/etc/fstab_ubuntu @@ -1,4 +1,5 @@ # BEGIN: rs-backup-suite +#/bin ::BACKUP_ROOT::/bin none bind 0 0 #/lib ::BACKUP_ROOT::/lib none bind 0 0 #/dev ::BACKUP_ROOT::/dev none bind 0 0 #/usr/bin ::BACKUP_ROOT::/usr/bin none bind 0 0