Answer the question
In order to leave comments, you need to log in
What is the best way to implement a backup server?
Good day to all
I want to make an ftp server on ubuntu for storing backups, everything will be stored in raid 1 of two disks, and one more disk for the system. Basically, win images taken with Acronis will be stored.
Tell me what are the pitfalls?
Is ubuntu suitable for these purposes or are there narrowly focused OSes? (the server will be used only for storing backups)
What file system is better to use for storage?
Thanks in advance for your replies
Answer the question
In order to leave comments, you need to log in
FreeNAS
Nas4Free
from highly specialized.
They have the ZFS file system to choose.
But 64 bits and 4 G of RAM are highly recommended for this case.
However, for your purposes, you can take anything.
FTP is not reliable these days if you need authorized access.
For copying large files, I trudge from the convenience of SyncThing.
I would also recommend using deduplication. With light compression on backups, it can save a lot of space
1. It's not quite clear why use Ubuntu when there is Debian?
2. Why use ftp when you can install Samba?
3. Against hacking, you can put fail2ban, in samba write the address (or a list of addresses) in the config from where you can connect, everything will be convenient and transparent from the vend, like a network "folder".
4. You can backup documents using cwrsync, and write a script on the server that will make hardlink backup snapshots using cp -ral from where to. If the file in the backup has not changed, the snapshot will not take up extra space.
The only downside here is that if backups are made to samba, a vandal virus will be able to write directly to a file and then spoil all the snapshots in a bunch that were made by hard links.
For example, here is the hourly backup script:
#!/bin/sh
BASE=/shares/backups
BASEBK=/shares/snapshots/baskup-last-`date +%H-%M`
rm -rf $BASEBK
mkdir $BASEBK
cp -ral $BASE $BASEBK/
Makes backups samba-shared directory /shares/backups with names like backup-last
-
18-00 in the
/ shares
/ snapshots directory path-to-something-not-backing-up
BASEBK=/shares/snapshots/daily
TODAY=`date +%F`
TODAYBK=backup$TODAY.tgz
DAY10=`date +%F -d'10 days ago'`
DAY10BK =backup$DAY10.tgz
#echo Delete the oldest 10-day
backup rm -rf $BASEBK/backup$DAY10
mkdir $BASEBK/backup$TODAY
#echo A hardlink copy is being made at the moment
cp -ral $BASE $BASEBK/backup$TODAY
I wrote this in a simplified way, I also have a MariaDB backup, clouds, /etc server directories, backup of a separate site to the inserted flash drive and even a record of information about the free space on the connected /shares partition:
echo `date +%F` `df -h|grep /shares|awk ' ''{print "free "$4" from "$2}'`> >$BASE/diskusage.log
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question