A delay is put in for the ftp transfer to ensure the previous archive process completes before the transfer starts. This will have each script run daily at 2am and 3am. To complete the automated backup process we will now configure a cronjob for each script:Ĭrontab -e 0 2 * * * /myscripts/backup.sh Next make sure to give needed execute privileges to your new scripts: Once the transfer completes it then deletes the backup from your server’s local storage. This code connects to your ftp storage on HiDrive and transfers the backup previously run. Next create your 2nd script at /scripts/ftp.sh with the following code: #!/bin/shīACKUPDIRECTORY="/users/YourHiDriveUsername/" These folders can be adjusted accordingly if your data is stored elsewhere. ![]() Since Bitnami is self-contained the entire /opt/bitnami folder is backed up. It is best to stop web services while this is taken to ensure no data is lost. This code will stop your web services and then create and store a backup with today’s date in /backup. Now firstly you will want to login to your server using SSH and create the following folders: /scripts and /tmpbackupįirst create /scripts/backup.sh with the following code: /opt/bitnami/ctlscript.sh stop Under “Access rights and protocols” click the edit button and uncheck the “Only use encrypted connections” button. Lower tariffs will not work with this setup: īefore we get started login to your HiDrive Pro account at ![]() Please note that only HiDrive Pro supports FTP access. In this guide we will configure a nightly server backup running Bitnami with HiDrive Pro for FTP storage.
0 Comments
Leave a Reply. |