#171 Issue closed: To add support of sshfs

Labels: enhancement

torig opened issue at 2012-10-30 18:00:

Rear v1.14

Change in file /usr/share/rear/output/ISO/Linux-i386/90_transfer_image.sh :

17c17
< (nfs|cifs|usb|tape|file)

(nfs|cifs|usb|tape|file|sshfs)

Add in file /usr/share/rear/lib/global-functions.sh :

95a96,98

    (sshfs)
        mount_cmd="/usr/bin/sshfs $(url_host $url):$(url_path $url) $mountpoint -o $options"
        ;;

117a121,123

    (sshfs)
        umount_cmd="/usr/bin/fusermount -u $mountpoint"
        ;;

Add in file /etc/rear/local.conf :

OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=sshfs://user@host/G/rear/
OUTPUT_URL=sshfs://user@host/G/rear/
REQUIRED_PROGS=(
"${REQUIRED_PROGS[@]}"
sshfs
fusermount
)
COPY_AS_IS=( "${COPY_AS_IS[@]}" /home/user/ /lib/terminfo/ ) # (For 'user' rsa key)
MODULES=( "${MODULES[@]}" fuse )
MODULES_LOAD=( "${MODULES_LOAD[@]}" fuse )

gdha commented at 2012-11-13 08:26:

interesting feature - will investigate it - and make a prep script for the prereqs


[Export of Github issue for rear/rear.]