A small script to upload backup tar to an external storage service
Clone or download
Pe46dro Merge pull request #6 from tomloprod/patch-1
FIX: Add port to FTP connection
Latest commit 43b9aca Jun 23, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes 👾 Added .gitattributes Dec 26, 2014
LICENSE Added LICENSE Feb 28, 2015
README.MD Edit README Jan 16, 2015
script.sh FIX: Add port to FTP connection Jun 22, 2018

README.MD

[Bash]FTP Backup Script

A small script to upload backup tar to an external FTP server

How it works:

  • You need to change "USERNAME,PASSWORD,SERVER" with information of your server
  • You need to change "DIR" with absolute position of folder/file you want backup
  • You need to change "FILE" with results of compression

If you have some problem open an issues on GitHub

##FAQ;

  • Q: How can I make backups automatic?

    A: You can use crontab (on linux) link

  • Q: Why can't I start the script?

    A: Make the file executable (chmod -x script.sh)

  • Q: Will this work on all linux distros?

    A: This script was tested on Ubuntu 12/14,Debian and Centos 6 and has worked whitout any problems

  • Q: Why SFTP don't work?

    A: You need to install "sshpass" ( apt-get install sshpass )