Skip to content

Instantly share code, notes, and snippets.

@fliiiix
Created December 8, 2013 18:28
Show Gist options
  • Save fliiiix/7861665 to your computer and use it in GitHub Desktop.
Save fliiiix/7861665 to your computer and use it in GitHub Desktop.
#!/bin/bash
sshfs remoteserver:backup/secure /root/backup/sshfsMount -o ServerAliveInterval=15 -o uid=10025 -o gid=10003
encfs -i n -o allow_other /root/backup/sshfsMount /root/backup/encripted/
rdiff-backup --no-hard-links --terminal-verbosity 5 /mnt/raid/secure /root/backup/encripted
fusermount -u /root/backup/encripted
fusermount -u /root/backup/sshfsMount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment