Skip to content

Instantly share code, notes, and snippets.

@pwilken
Last active August 21, 2019 16:01
Show Gist options
  • Save pwilken/4321ae3602ea11329f3dde1097c5ef62 to your computer and use it in GitHub Desktop.
Save pwilken/4321ae3602ea11329f3dde1097c5ef62 to your computer and use it in GitHub Desktop.
#!/bin/bash
USERNAME=root
ssh -l ${USERNAME} server-name "
sudo apt-get install nfs-common;
cd ..;
sudo mkdir -p /remote-backups;
sudo chmod 777 remote-backups;
sudo mount -t nfs "backup-storage-id:/export/ftpbackup/ovh-server-name" /remote-backups;
exit;
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment