D
D
desecho2012-04-01 23:52:54
linux
desecho, 2012-04-01 23:52:54

Backup organization question

It is necessary to make copies of files from different servers - drop every day all the files from the selected servers into a folder with the current date.
I think to implement using a shell script. The script on the backup server will go to each server in turn, copy the necessary files and possibly archive them. I think to make authorization on keys and on scp to transfer files.
Tell me, is this a good solution or can it be organized better and easier?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
shadowalone, 2012-04-02
@shadowalone

To implement in such a way that one server would go to everything and merge everything to itself, I would not.
Let it be better for each server to make a cron backup, compress it, and put it on the backup server itself. On the backup server itself, implement versioning. The only negative is that the backups will be full, not incremental.

@
@egort, 2012-04-02
_

In your case, nothing is easier than shell + rsync, IMHO. And what could be better than an hour or two of shell-scripting practice (if you are not a Guru, of course). Many good utilities come out to the people gradually, shanair shanaih as a classic would say;)

P
phasma, 2012-04-02
@phasma

take bacula, it will be easier, because you will not need to invent an incremental backup. We have both incremental scripts (it was written before me) and bacula. Bacula is easier. If you do not want to bother, then you can put a ready-made muzzle. I made a cgi script for myself that displays the status of backups.

C
ChiPer, 2012-04-02
@ChiPer

bacula is rather bulky and is more suitable for a large number of servers. I would make a separate backup server that would run rsync. Further, according to the crown, each rsync server as a client would transfer all the necessary files (in incremental copy mode) If you need to copy only certain files and scatter them by date, then it is better to write a script that archives and transfers files via NFS to the backup server.

T
TrueDrago, 2012-04-02
@TrueDrago

Look towards rsnapshot . It is based on rsync and does not copy files, but makes hardlinks if they have not changed in the new backup. It also splits everything into folders (daily, hourly, etc.), depending on the settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question