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 revisionBoth sides next revision
sparky_backup_core [2017/03/05 20:53] pavroosparky_backup_core [2017/03/05 23:06] pavroo
Line 45: Line 45:
 === Step 2 - Desktop configuration === === Step 2 - Desktop configuration ===
  
-=== Step 3 - Building process ===+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
  
-=== 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 do exist in the 'skel' directory. 
  
-a. Create 'offline' folder in the system's /home directory: +=== Step - Building process ===
-   sudo mkdir -p /home/offline +
- +
-b. Change the folder owner to you (an option, can be managed as root): +
-   sudo chown -R $USER:$USER /home/offline  +
- +
-(change $USER to your user name) +
- +
-c. Download deb packages from Debian 'testing' repository: +
- +
-64bit (amd64): efibootmgr, grub-efi, grub-efi-amd64, grub-efi-amd64-bin, libefiboot1, libefivar1 +
- +
-32bit (i386): efibootmgr, grub-efi, grub-efi-ia32, grub-efi-ia32-bin, libefiboot1, libefivar1 +
- +
-and place them in the /home/offline folder. +
- +
-Make sure that the placed debs are in the same versions as available by APT before building the new iso. +
- +
-=== Tip 3 === +
- +
-Do not place much stuff in the /etc/skel directory. It breaks the live system and it won't start. +
- +
-=== 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'+
- +
-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"+After changing all your custom setting, the building process can be started:
  
-=== Tip 5 ===+   sudo sparkybackup dist
  
-Used personal stuff for customization (wallpaersthemes, etc.) have to be placed in system directoriesbut NOT in your /home - it will be not copied to the new iso directory.+Building with no errors will place your new iso imagepackage list and check sum files in your working directoryCopy them to other locationbefore buildning next one.
  
-Put your stuff in dirs, such as:+=== Step 4 - Cleaning ===
  
-/opt/+After the building process been completed, and you copied the iso and other stuff to diffent locations, you **HAVE** to clean the working directory **BEFORE** making another iso image:
  
-/usr/share/wallpapers/+   sudo sparkybackup clean
  
-/usr/share/themes/ 
  
 +You should also read [[tricks_tips|Tricks & Tips]] page.
  
sparky_backup_core.txt · Last modified: 2021/05/04 15:24 by 127.0.0.1