Forked from justsml/ovh-mount-nfs-ftp-backup-server.sh
Created
December 16, 2017 17:24
-
-
Save tperalta82/36e33336f46b2b3de6757f7fa341bfcd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# REQUIRED ACTION: Configure your backup server vars - see OVH Server Manager's "Backups" tab. | |
# BACKUP_HOST_PREFIX: use the prefix domain for the listed "Name" value on the "Backups" tab. | |
# Example: With a 'Name' value `ftpback-bhs1-3.ip-111-222-333.net` you would need to set `BACKUP_HOST_PREFIX=ftpback-bhs1-3` | |
# Add something likethese to your ~/.bashrc - /etc/profile | |
#export OVH_SERVER_ID="ns5xxxxx.ip-x-x-x.net" | |
#export BACKUP_HOST_PREFIX="ftpback-bhs1-x" | |
sudo mkdir -p /remote-backups | |
sudo mount -t nfs "$BACKUP_HOST_PREFIX.mybackup.ovh.ca:/export/ftpbackup/$OVH_SERVER_ID" /remote-backups | |
# mount -t nfs4 -o auto,noatime,nolock,local_lock=none,bg,vers=4.0,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys \ | |
# ftpback-bhs1-3.mybackup.ovh.ca:/export/ftpbackup/nsxxxxxx.ip-x-x-x.net \ | |
# /remote-backups | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment