The Linux Agent is client side software that creates and transfers image-based backups of the block devices on a Linux machine.
- Project Overview
- System Requirements
- Build & Installation Instructions
- Usage
- How to Submit a Bug Report
- How Does It Work?
The intention of this project is to create a general purpose tool to perform image based backups of Linux machines.
- Kernel version 2.6.32+
- Filesystem is ext4, ext3, ext2, or xfs
- All
- Remember to
git submodule init && git submodule update
to get the submodule projects
- Remember to
- Debian-based (e.g. Ubuntu, Mint)
- You can build the package from
linux-agent-deb,
or just
./install_deps
to get the dependencies and./one_step_build
to build it.
- You can build the package from
linux-agent-deb,
or just
- Red-Hat based
- Packages soon! But not yet. So follow the other directions for now.
- Other
- You will need to go through the
install_deps
script and install the files needed using whatever your package manager is. Then, run./one_step_build
. Let me know and I'll be happy to help with this.
- You will need to go through the
- Starting the daemon
- If you installed from the package, it is probably already running.
Otherwise, just type
dattod
. - If you built from source, do
./build/dattod
- If you installed from the package, it is probably already running.
Otherwise, just type
- Requesting a backup
- Setup the destination server
- Make a sparse file to back the image. On the system to backup, run
blockdev --getsize64 /dev/YOUR_BD
to get the size in bytes of the block device to backup. Then, copy that number and dotruncate --size=SIZE_OF_BD block_dev.datto
on the destination system. - Start nbd-server on the destination system.
nbd-server 12345 $(readlink -f block_dev.datto)
to start it on port 12345
- Make a sparse file to back the image. On the system to backup, run
- Get the UUID of the block device to backup by running
blkid
and copying it out. - Request a backup with
./build/dattocli startbackup --full --vector UUID_FROM_BLKID DESTINATION_HOST 12345
- Setup the destination server
- Submit it as an issue on GitHub: https://github.com/datto/linux-agent/issues/new
- If you aren't sure if something is a bug, report it anyway! Rather have too many than too few.