Skip to content

Backup script in bash for my VPS, uses webdav to connect to Box.net and rsync for backing up

Notifications You must be signed in to change notification settings

jackdwyer/Box.net-Backup-bash-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

*****
New box.net backup script is going to be written tomorrow/on the weekend
It will just use cp, to copy over any files that are not currently in the 
box.net directory.

Aswell as do the db dump.  new project will be created
*****

***************
NOTE
rsync doesnt just send the delta files
Need to do more research to set up a better back up solution using box.net

*************

-----------------------------
Backup To Box.net
----------------------------
Jack Dwyer
06 October 2011

Bash Backup Script utilsing the free 50gb offer of box.net
Can use any mounted directory, is not tied directly to box.net.

Features:
-Email's you if the backup failed
-Backs up Mysql DB if required
-Backs up all specifed directories

Software needed:
- msmtp for emailing to gmail account
I have mine configured similar to how is shown in this post:
http://ubuntuforums.org/showthread.php?t=1472520

- davfs2 to mount box.net if chosing to use that as your backup location.
I setup my box.net following these steps:
http://ubuntuforums.org/showpost.php?p=11258734&postcount=34

---------------------------------------------------------------------
How to use:
---------------------------------------------------------------------
All you should need to do, is:
1st -	Setup Global Variables

2nd - 	Fill in the source, and destination Array with all the directories
	you want backed up.
	Source[i] needs to make with its specified Destintion[i]

3rd - 	Same deal with database's if you you it backed up. Also need to give
	mysql database username, and password.

4th -	Set the email to yours, or else when it fails you wont get an email!

5th -	Cronjob the baby

Pretty sure that sums it up.


About

Backup script in bash for my VPS, uses webdav to connect to Box.net and rsync for backing up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages