R
R
Ruslan Banochkin2012-11-30 15:45:25
Backup
Ruslan Banochkin, 2012-11-30 15:45:25

hosting backup script

I have a small Ubuntu server at my house. I thought about hosting backups, where the sites are located.

Tell me, are there ready-made solutions for hosting backups? It is necessary that there are backups of both the files themselves (downloaded from FTP and via sftp) and mysql databases.

And it would be nice if the backup was intellectual. That is, thousands of files were not downloaded each time (for a long time), but only changed ones.

Well, if there is an opportunity to make different backups (for example, daily, weekly and monthly prescriptions), then it would be generally gorgeous.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
E
Enchant, 2012-11-30
@Enchant

I can recommend backing up to the Selectel cloud storage :-)
For convenient file upload, the supload utility has been prepared , which allows you to upload only changed files and check the integrity of the data. You can also use this utility in other scripts to implement more complex backup logic.
To prepare a dam of mysql databases, it is convenient to use the automysqlbackup utility , it has many useful functions and settings.
Another useful utility for creating backups at various intervals is rsnapshot .

A
Andrey, 2012-11-30
@reaferon

Not the easiest, but worthy way:
- Install a version control system on your home server. For example Subversion. As a storage (although you need an external IP)
- we add the site to the storage and a working copy to the hosting
- on the hosting in cron we write a small script that dumps the database to a file and makes svn ci at the root of the site.
Troublesome and on the wrong side, but completely fulfills the tasks. Plus versioning.
habrahabr.ru/post/26117/

@
@sledopit, 2012-11-30
_

recently asked

A
Alexander, 2012-11-30
@disc

We use automysqlbackup for databases, duplicity for files. We store everything in Selectel.

S
shirkevich, 2012-12-01
@shirkevich

I recommend rubygem Backup .
Wonderful DSL and all the necessary features:

  • databases : postgres, mysql, mongodb, redis, riak
  • syncers : rsync, amazon s3, rackspace
  • storages : ftp, scp, dropbox, s3
  • notifiers : email, twitter, campfire

L
Leshrac, 2012-12-01
@Leshrac

a couple of years ago, we used a bash script as a temporary solution to make backups and a python script to take them to another machine:

A
Alexander Maslov, 2012-12-01
@drakmail

We use backup-ninja, it can do everything it needs, it copes fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question