User Tools

Site Tools


sparky_backup_core

This is an old revision of the document!


Sparky Backup Core

Sparky Backup Core lets you backup your existing Sparky installation, and create a new iso image of it. The tool is based and forked from Remastersys.

Installation

 sudo apt-get install sparky-backup-core

Tools

Sparky Backup Core provides two tools:

- 'sparkybackup' - text based, which creates a new iso image.

- 'sparkylinux-installer' - a text and Yad (GUI) based live installer which lets you install your Sparky based re-spin on a new partition, disk or machine. The tool is called Sparky Advanced Installer, and is available in all Sparky iso images.

Usage

Usage of the 'sparkybackup' tool in a text mode is manuall only, means all preperations have to be done step by step by you, before starting the process.

Step 1 - Basic configuration

The tool configuration is placed in /etc directory:

 /etc/sparkybackup/sparkybackup.conf

Edit the file by a text editor, as root, and change some options as you like:

a. Working directory (make sure you need up to 20 GB of space to create 4GB iso image):

 WORKDIR="/home/sparkybackup-sys"

b. The live system label:

 LIVECDLABEL="SparkyLinux"

c. New iso image name:

 CUSTOMISO="sparkylinux-4.6-arch-desktop.iso"

etc.

I do not suggest to change the live system user name, simply leave is as it is (live).

Step 2 - Desktop configuration

Your desktop configuration should be copied to the /etc/skel directory to use it in a new live system.

Simply copy (as root) any desktop environment or window manager configuration to skel, for example:

JWM:

 sudo cp ~/HOME/.jwmrc /etc/skel/

Openbox:

 sudo cp ~/HOME/.config/openbox/* /etc/skel/.config/openbox/

etc., etc.

Make sure that the target folder do exist in the 'skel' directory.

Step 3 - Building process

After changing all your custom setting, the building process can be started via the command:

 sudo sparkybackup dist

Building with no errors will place your new iso image, package list and check sum files in your working directory. Copy them to other location, before buildning next one.

Step 4 - Cleaning

After the building process been completed, and you copied the iso and other stuff to a diffent location, you HAVE to clean the working directory BEFORE making another iso image:

 sudo sparkybackup clean

Shortcuts

Starting from version 20171009, the tool got text line shortcuts, such as:

  • 'sparkybackup dist' → spb
  • 'sparkybackup clean' → spb clean
  • 'nano /etc/sparkybackup/sparkybackup.conf' → spb edit

You should also read Tricks & Tips page.

sparky_backup_core.1507463141.txt.gz · Last modified: 2021/05/04 15:25 (external edit)