Contact me

I'm a Haskeller
Twitter  🙋  LinkedIn


News!

Monday 16. December 2019: Working at EasyMile for nearly 3 years. Critical real-time software in C, simulation and monitoring in Haskell ➡️ perfect combo! It’s efficient and funny ;-)
And we are recruiting! Contact if you are interested in Haskell or embedded softwares (or both).

Sunday 15. December 2019: Playing with Pandoc filters in Haskell. abp should make pp obsolete.

me CDSoft CV/Resume Haskell Haskell Handy Calc abp pp Lua BonaLuna calculadoira Python TPG Vim todo pwd A.I. tools in Prolog dialog Free Free softwares Essays Oldies

Simple backup script for GNU/Linux

Christophe Delord

07 January 2017

Abstract

save.py is a Python script designed to simply backup and restore partitions.

warning

This software seems to work but I’m not responsible for any loss of data or crash of your hard disk. This software is provided as is, without any support and users use it at their own risks.

Always plug in the power supply to backup and restore a notebook.

Download and install

save.py can be run in a terminal directly from your favorite GNU/Linux system to backup your data without rebooting (but with some restrictions) or run from a live GNU/Linux distribution. You can also run it from a CDKey for instance.

Please check the MD5 sums of this file:

4b1d297f61ff45fecc9727ee8feb13e9  save.py

How it works

First you must keep in mind that save.py is designed to be simple thus do not expect to do complex things.

The format of the backup is automatically determined. Partitions containing an operating system are saved with partclone to make them bootable after restoration. Other partitions are saved with rsync if the backup partition is of the same format (to ease backup exploration while preserving file attributes) or with partclone if the backup partition has a different format (to preserve file attributes). For sake of simplicity (and speed) it’s advised to format your backup partition as Ext3 to backup Linux systems or as NTFS to backup some expensive operating systems using NTFS partitions.

Currently only Ext3, Ext4, FAT and NTFS partitions can be saved. Btrfs may be supported soon.


  1. GParted can be found on SystemRescueCD for instance.↩︎