User Tools

Site Tools


sparky_backup_core

Differences

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

Link to this comparison view

Next revision
Previous revision
sparky_backup_core [2017/03/05 20:37] – created pavroosparky_backup_core [2021/05/04 15:24] (current) – external edit 127.0.0.1
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 ===+=== Step 1 - Basic Configuration ===
  
 +The tool configuration is placed in /etc directory:
  
-=== Step 2 ===+   /etc/sparkybackup/sparkybackup.conf
  
-=== Step 3 ===+Edit the file by a text editor, as root, and change options as you like:
  
-==== Tricks & Tips ====+  * a. - Working directory (make sure you need up to 20 GB of space to create 4GB iso image):
  
-=== Tip 1 ===+   WORKDIR="/home/sparkybackup-sys"
  
-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:+  b- The live system label:
  
-   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.+   LIVECDLABEL="SparkyLinux"
  
-you have to remove some stuff from the system and try again.+  * c- New iso image name:
  
-=== Tip 2 ===+   CUSTOMISO="sparkylinux-4.6-arch-desktop.iso"
  
-The tool builds BIOS compatible iso system as defaultIf you would like to build the iso image which will be BIOS and UEFI compatible, you have to:+etc.
  
-a. Create 'offline' folder in the system's /home directory: +I suggest not changing the live system user name, simply leave is as it is (live).
-   sudo mkdir -p /home/offline+
  
-b. Change the folder owner to you (an option, can be managed as root): +=== Step 2 Desktop Configuration ===
-   sudo chown -R $USER:$USER /home/offline +
  
-(change $USER to your user name)+Your desktop configuration should be copied to the /etc/skel directory to use it in a new live system.
  
-c. Download deb packages from Debian 'testing' repository:+Simply copy (as root) any desktop environment or window manager configuration to skel, for example:
  
-64bit (amd64)efibootmgr, grub-efi, grub-efi-amd64, grub-efi-amd64-bin, libefiboot1, libefivar1+JWM:
  
-32bit (i386): efibootmgr, grub-efi, grub-efi-ia32, grub-efi-ia32-bin, libefiboot1, libefivar1+   sudo cp ~/HOME/.jwmrc /etc/skel/
  
-and place them in the /home/offline folder.+Openbox:
  
-Make sure that the placed debs are in the same versions as available by APT before building the new iso.+   sudo cp ~/HOME/.config/openbox/* /etc/skel/.config/openbox/
  
-=== Tip 3 ===+etc., etc.
  
-Do not place much stuff in the /etc/skel directory. It breaks the live system and it won't start.+Make sure that the target folder exists in the 'skel' directory
  
-=== Tip 4 ===+=== Step 3 - Building Process ===
  
-If your machine is a few (or more) years oldand can't handle with strong 'xz' compresssion, change it to 'gz'. It works faster, but creates 20-30 % bigger iso image than using 'xz'.+After creating your custom settingsthe building process can be started via the command:
  
-To change compression type, edit the configuration file (by any text editor):+   sudo sparkybackup dist
  
-   sudo nano /etc/sparkybackup/sparkybackup.conf+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.
  
-and change the line from:+=== Step 4 - Cleaning ===
  
-   SQUASHFSOPTS="-no-recovery -comp xz -always-use-fragments -b 1M"+After the building process is completed, and you copied the iso and other stuff to a different location, you **HAVE** to clean the working directory **BEFORE** making another iso image:
  
-to:+   sudo sparkybackup clean
  
-   SQUASHFSOPTS="-no-recovery -always-use-fragments -b 1M"+==== Shortcuts ====
  
 +Starting from version 20171009, the tool was upgraded with text line shortcuts called "spb", for example:
 +
 +  * 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
 +
 +
 +You might also read the [[tricks_tips|Tricks & Tips]] page.
 +
 +-----
 +
 +<WRAP center box 100%>
 +|[[sparky_backup_system|<--- Sparky Backup System]]  |  [[start|^ Wiki Start Page ^]]  |  [[sparky_backup_sys|Sparky Backup Sys --->]]|
 +</WRAP>
  
sparky_backup_core.1488742653.txt.gz · Last modified: 2021/05/04 15:25 (external edit)