User Tools

Site Tools


sparky_backup_core

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
sparky_backup_core [2017/03/05 20:51] pavroosparky_backup_core [2019/12/22 01:31] 8bit
Line 1: Line 1:
 ===== Sparky Backup Core ===== ===== Sparky Backup Core =====
  
-Sparky Backup Core is a tool which lets you backup your existing Sparky installation, and create a new iso image of it. The tool is based and forked from Remastersys.+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 ==== ==== Installation ====
Line 11: Line 11:
 Sparky Backup Core provides two tools: Sparky Backup Core provides two tools:
  
-- 'sparkybackup' - text based, which creates a new iso image.+  * Sparky Backup - 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 [[advanced_installer|Sparky Advanced Installer]], and is available in all Sparky iso images.+  * 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 [[advanced_installer|Sparky Advanced Installer]], and is available in all Sparky iso images.
  
 ==== Usage ==== ==== 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.+Usage of the 'sparkybackup' tool in a text mode is manual only, preparations need to be done step by step by you, before starting the process.
  
-=== Step 1 - Configuration ===+=== Step 1 - Basic Configuration ===
  
 The tool configuration is placed in /etc directory: The tool configuration is placed in /etc directory:
Line 25: Line 25:
    /etc/sparkybackup/sparkybackup.conf    /etc/sparkybackup/sparkybackup.conf
  
-Edit the file with a text editor, as root and change some options:+Edit the file by a text editor, as rootand change options as you like:
  
-a. Working directory (make sure you need up to 20 GB of space to create 4GB iso image):+  * a. Working directory (make sure you need up to 20 GB of space to create 4GB iso image):
  
    WORKDIR="/home/sparkybackup-sys"    WORKDIR="/home/sparkybackup-sys"
  
-b. The live system label:+  * b. The live system label:
  
    LIVECDLABEL="SparkyLinux"    LIVECDLABEL="SparkyLinux"
  
-c. New iso image name:+  * c. New iso image name:
  
    CUSTOMISO="sparkylinux-4.6-arch-desktop.iso"    CUSTOMISO="sparkylinux-4.6-arch-desktop.iso"
Line 41: Line 41:
 etc. etc.
  
-do not suggest to change the live system user name, simply leave is as it is (live).+I suggest not changing the live system user name, simply leave is as it is (live).
  
-=== Step 2 - Desktop config ===+=== Step 2 - Desktop Configuration ===
  
-=== Step 3 ===+Your desktop configuration should be copied to the /etc/skel directory to use it in a new live system.
  
-==== Tricks & Tips ====+Simply copy (as root) any desktop environment or window manager configuration to skel, for example:
  
-=== Tip 1 ===+JWM:
  
-The script can build an iso image from self compressed squashfs (done during the whole prosess) which **CAN NOT** be bigger then 3.99 GB. It means if the building process stops with a message:+   sudo cp ~/HOME/.jwmrc /etc/skel/
  
-   The compressed filesystem is larger than the iso9660 specification allows for a single file. You must try to reduce the amount of data you are backing up and try again.+Openbox:
  
-you have to remove some stuff from the system and try again.+   sudo cp ~/HOME/.config/openbox/* /etc/skel/.config/openbox/
  
-=== Tip 2 ===+etc., etc.
  
-The tool builds BIOS compatible iso system as default. If you would like to build the iso image which will be BIOS and UEFI compatible, you have to:+Make sure that the target folder exists in the 'skel' directory. 
  
-a. Create 'offline' folder in the system's /home directory: +=== Step 3 Building Process ===
-   sudo mkdir -p /home/offline+
  
-b. Change the folder owner to you (an option, can be managed as root): +After creating your custom settingsthe building process can be started via the command:
-   sudo chown -R $USER:$USER /home/offline +
  
-(change $USER to your user name)+   sudo sparkybackup dist
  
-cDownload deb packages from Debian 'testing' repository:+A successful build will place your new iso image, package list and check sum files in your working directory. Copy them to other location, before building next one.
  
-64bit (amd64): efibootmgr, grub-efi, grub-efi-amd64, grub-efi-amd64-bin, libefiboot1, libefivar1+=== Step 4 Cleaning ===
  
-32bit (i386): efibootmgrgrub-efigrub-efi-ia32, grub-efi-ia32-bin, libefiboot1, libefivar1+After the building process is completedand you copied the iso and other stuff to a different locationyou **HAVE** to clean the working directory **BEFORE** making another iso image:
  
-and place them in the /home/offline folder.+   sudo sparkybackup clean
  
-Make sure that the placed debs are in the same versions as available by APT before building the new iso.+==== Shortcuts ====
  
-=== Tip 3 ===+Starting from version 20171009, the tool was upgraded with text line shortcuts called "spb", for example:
  
-Do not place much stuff in the /etc/skel directory. It breaks the live system and it won't start.+  * spb dist = sparkybackup dist 
 +  * spb clean = sparkybackup clean 
 +  * spb edit = nano /etc/sparkybackup/sparkybackup.conf 
 +  * spb cache = apt-get autoremove + apt-get clean + aptitude purge ~c
  
-=== Tip 4 === 
  
-If your machine is a few (or more) years old, and can't handle with strong 'xz' compresssion, change it to 'gz'. It works faster, but creates 20-30 % bigger iso image than using 'xz'.+You might also read the [[tricks_tips|Tricks & Tips]] page.
  
-To change compression type, edit the configuration file (by any text editor): +-----
- +
-   sudo nano /etc/sparkybackup/sparkybackup.conf +
- +
-and change the line from: +
- +
-   SQUASHFSOPTS="-no-recovery -comp xz -always-use-fragments -b 1M" +
- +
-to: +
- +
-   SQUASHFSOPTS="-no-recovery -always-use-fragments -b 1M" +
- +
-=== Tip 5 === +
- +
-Used personal stuff for customization (wallpaers, themes, etc.) have to be placed in system directories, but NOT in your /home - it will be not copied to the new iso directory. +
- +
-Put your stuff in dirs, such as: +
- +
-/opt/ +
- +
-/usr/share/wallpapers/ +
- +
-/usr/share/themes/+
  
 +<WRAP center box 100%>
 +|[[sparky_backup_system|<--- Sparky Backup System]]  |  [[start|^ Wiki Start Page ^]]  |  [[sparky_backup_sys|Sparky Backup Sys --->]]|
 +</WRAP>
  
sparky_backup_core.txt · Last modified: 2021/05/04 15:24 by 127.0.0.1