g11436719719165

Location:
Flowers: , Eggs:

Comments

How to backup a Linux system?

When I switched to MacOS everybody was talking about how advanced, superior, cool was Time Machine, the backup solution every Mac has. It is actually very nice to use, mainly because the graphics seem to come from the future, but I did not like one aspect: the backup files were compressed (and encrypted) in a way that only another Mac could understand.

I am not a vendor lock-in fan, so I did not want to be obliged to buy Macs forever only because of my backups, so I started looking around at alternatives. There are many, either free or payed, but there is one sitting there in your /usr/bin called rsync.
Learn more about the Linux Administrator certifications.

Rsync is a Unix tool to synchronize the content of two folders that can be located over the net, or on different hard disks. It is capable of everything you can think of - preserving attributes, navigating symlinks, encrypt files, incremental backups, etc. - and has a very nice man page.

So I decided to build my own backup script. It was not an easy journey. It’s written in bash, it will take your data from your home directory to a network position using SSH. It will also copy only differences in files, and hard linking unchanged files, so everytime I run it I get a snapshot of my pc that takes the smallest possible space.

If you can access a network position with ssh access (without password), you can schedule a cron job to run every X hours and have a full backup of your computer.
2020-02-13 20:18:48, views: 1079, Comments: 0
   
0
0
`
zebratrade