Skip to content

Instantly share code, notes, and snippets.

@justsml
Last active June 9, 2023 03:22
Show Gist options
  • Save justsml/f856748d71fcbb4797053dbfd0f7f232 to your computer and use it in GitHub Desktop.
Save justsml/f856748d71fcbb4797053dbfd0f7f232 to your computer and use it in GitHub Desktop.
#!/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