Answer the question
In order to leave comments, you need to log in
Pulling an image from Debian over the network?
Given: a piece of hardware on Debian 8.2, connected to the network, access only via SSH.
It is necessary: removal of an image of system according to the schedule.
Are there easier options than Bacula?
If setting up a backup over the enivey network is difficult, then you can also use it on an external hard drive.
Answer the question
In order to leave comments, you need to log in
If you are shooting an image, then you definitely need to take care of its integrity. On Windows, this is the responsibility of the Shadow Copy Service, which takes a snapshot of the volume when requested by the application. Before that, the so-called VSS writes (all sorts of DBMS, etc.) are called, which flush their caches to disk before creating a snapshot.
On Linux, there are two ways to take a snapshot of volume
1. You must have the system installed on LVM, and there must be free space on the volume group to take the snapshot. This needs to be taken care of at the time of system installation, it is somewhat problematic to transfer an already installed to LVM, although it is possible
2. You need to use btrfs, which supports snapshots at the FS level.
In case 1 you
a) mount a remote directory from the backup server to your server via sshfs
b) save the disk layout to a file via gdisk
c) save the configuration of LVM volumes to a file via vgcfgbackup
d) make a snapshot of the LVM volume via lvcreate
e) backup only used sectors in volume via partclone
f) delete the snapshot
g) unmount the directory with backups
in case 2 you
a) mount the remote directory from the backup server to your server via sshfs
b) save the disk layout to a file via gdisk
c) create a snapshot FS using the btrfs utility
d) rsync -th copy the contents of the snapshot to a remote directory with all permissions, owners, acl and xattr
e) delete the snapshot
f) unmount the directory with backups
. If you don’t have LVM or btrfs, then you need to mount the remote directory via sshfs, make a backup of the DBMS there using its regular means and copy the contents of the FS via rsync
Try rsnapshot
https://habrahabr.ru/post/45912/
If you need an image in one file - tar
tar -cvpzf /`hostname`.tar.gz --exclude=/`hostname`.tar.gz --exclude=/swap --one-file-system /
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question