@aaronux mini how to for you :
1 in Web UI configure backup-data to USB
2 go to SSH and paste
db configuration setprop backup-data Mount /path/backup
3 cp /etc/e-smith/events/actions/mount-usb /etc/e-smith/events/actions/mount-usb.bak
4 edit /etc/e-smith/events/actions/mount-usb comment
#my $usblabel = $backupwk->prop('USBLabel') || die "No USBLabel set";
our $b = new NethServer::BackupData();
# get the device name
#my $device = qx( /sbin/blkid -u filesystem -L $usblabel);
#chomp $device; # remove trailing new line
# creating mount directory
if ( ! -d $mntdir ) {
make_path($mntdir);
}
# mount backup directory if not already mounted
#if (!$b->is_mounted($device) || !$b->is_mounted($mntdir)) {
# create mnt directory
# system("/bin/mkdir -p $mntdir");
# mount the disk
# $err = qx(/bin/mount $device "$mntdir" 2>&1);
# if ($err) {
# $err =~s/\n/ /g;
# ldie("Error while mounting /$usblabel : " . $err);
# }
#}
5 run /sbin/e-smith/backup-data
6 go to drink coffee
Agree, backup on the same disk and machine is not a real backup. @aaronux welcome on NethServer community. Did you have test @Nas suggestion? Does it work?
In some clients I use a raid 1 + one disk as internal backup. In this way I´ve been able to put a server and forget it.
Backup solutions here is very expensive, like some NAS server or external disks solutions like this. As my projects are to small companies, a internal disk solution is the more cheap and offer some level of security.
Now I am trying to implement some solution to upload backup to a backup server in my own office.
I implement this in with bash scripts, but it will be a great add to Nethserver if we can manage this in the web interface.
We dont have hi internet conections to put the server in a cloud model. A complete solution cost too for the size of the companyes that I manage. Im talking about very small offices with 3 or 4 employees and very low budget. Already is a conquer using a small server. So I do my best with the limitations. Put a server in a room with a strong lock, doing local backups, doing backups in other computer and in external media. I know it is not the best, but it is what I can do for them.
I use a second disk inside the server… Not in the same filesystem. Usualy 2 disks in raid for the primary partition and a third disk for backup. I think maybe I wasn´t clear in the previous posts, sorry.
In the new version (6.8) this was solved, I can use a secondary disk as backup. So, now is perfect.