I know this article but there is no comparison to OSX's TimeMachine. I would like to find a backup software which is about the same as TimeMachine or better.
I would like to have such a software which can use some format of HDD which is suitable for big files (50 GB) in Linux. I noticed that
- OSX format of HFS+ is not supported by Linux distros, since no maintainer of HFS in Linux since 2006
- NTFS format made by Debian 8.1 is not supported by older Linux distros
If Windows support, good.
Try with the Backups (Deja Dup) software
I did start the backup first time but I wanted to go to lunch after backup was running already two hours of just 10 GB files. So it gave me this after the lunch
which is really insane, reported now here, since the software is not designed to have pauses in doing the backups.
You can use Cronopete. Cronopete is a backup utility for Linux, modeled after Apple's Time Machine. It aims to simplify the creation of periodic backups.Launchpad.
To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
To install from source, see Here
Or you can try Back In Time. Back In Time is a simple backup tool for Linux inspired from FlyBack and "TimeVault".Back In Time / Launchpad.
To install just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
On a personal note, I use Systemback for all my backups, archiving, and imaging. To install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
If you don't mind working with the console try
backup-manager
, it comes along with the distribution. The handling is done with one config file sitting in /etc.To modify the file you could use nano in the console.
You won't need most of it. What I personally like is, that no additional packages are needed.
Here is a small example of a backup.
Where to store the files?
choose your Directory, where to put the files.
Pay close attention to the following settings there
If you backup something like
/home
or/movie
you might leave this option on, so only root and the root group might be able to access the backupFor a server backup (e.g. a multi user server and/or folders like
/var/www/
/opt/
/etc/
/var/
) you might consider setting this option to false to preserve ownership/accessability of the files after a restore. Otherwise you'll need to manually set them after a restore.Choose your backup-method
choose
Choose the directories to backup
Further info can be found in the section
Here I checked the following options
Choose rotation of master and incrementals
I've choosen to do weekly full backups on monday (first day of the week). That means every monday I get a full backup and the rest of the week will be saved in different smaller incremental files. So restoring them would mean. Resotre the full backup and after that the incremental files, to get back the latest backup of your data.
Cronjob
Use a simple cronjob to do the backup automatically
Enter the following
If you need a notification email remove this part
TimeShift
It has a simple graphical interface but you can also use it from the terminal.
linux-timemachine is POSIX compliant bash script that aims to mimic the behavior of OSX's timemachine. It uses rsync to incrementally back up your data to a different directory, hard disk or remote server via SSH. All operations are incremental, atomic and automatically resumable:
Backups are always done incrementally using rsync's ability to hardlink to previous backup directories. You can nevertheless always see the full backup on the file system of any incrementally made backup without having to generate it. This will also be true when deleting any of the previously created backup directories. See the Backups section for how this is achieved via rsync.
I add it as a cron from webmin - a Web GUI for administering any linux box - which is under System -> Scheduled CRON Jobs. I like to have it run every 6 hours.
Put
ionice nice
in front will keep your machine responsive and quieter. Runiotop
to see disk bandwidth. AFAIK macOS would also run veryniced
and also pause for around 10 seconds on activity somehow: I kinda like Apple's over the top polish here.I do not recommend Deja-dup because it is not close to Time-Machine in features, and is unstable with many filesystems. I have not managed to get proposals of Mitch sufficient in features for my needs. They break too much.
Niceness of the Process
Nice will lower the cpu priority, freeing cpu power for other processes,
ionice
will reduce the disk priority, freeing the disk i/o for other processes). Usetar czf
withnice
as described here separately for the system and home such that you can easily work vertical with your systems in many projectsLimit CPU consumption of the Process
Assume you have a limited system etc ultrabook with 20 Mb/s read/second. If you do not know it, use
Then, limit your CPU and do
Move Computation to GPU
TODO Future
This is certainly not the most TimeMachine-like program you ask for, but a solution that works, and because implemented as bash scripts, modifiable and extendable:
Create backup of your directory using the Zaloha.sh synchronizer:
Then create a hardlink-based snapshot of your backup directory using Zaloha_Snapshot.sh:
Official repository is here: https://github.com/Fitus/Zaloha.sh
The official repository contains simple working demos and a comprehensive documentation that explains how it works.