This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sparky_backup_core [2017/03/05 20:49] – pavroo | sparky_backup_core [2018/03/05 23:02] – [Shortcuts] pavroo | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Sparky Backup Core ===== | ===== Sparky Backup Core ===== | ||
- | Sparky Backup Core is a tool which lets you backup your existing Sparky installation, | + | Sparky Backup Core lets you backup your existing Sparky installation, |
==== Installation ==== | ==== Installation ==== | ||
Line 19: | Line 19: | ||
Usage of the ' | Usage of the ' | ||
- | === 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: | ||
/ | / | ||
- | Edit the file with a text editor, as root and change some options: | + | Edit the file by a text editor, as root, and change some options |
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): | ||
Line 31: | Line 31: | ||
| | ||
- | b. New system's name: | + | b. The live system |
| | ||
- | | + | |
c. New iso image name: | c. New iso image name: | ||
Line 43: | Line 43: | ||
I do not suggest to change the live system user name, simply leave is as it is (live). | I do not suggest to change the live system user name, simply leave is as it is (live). | ||
- | === Step 2 - Desktop | + | === Step 2 - Desktop |
- | + | ||
- | === Step 3 === | + | |
- | + | ||
- | ==== Tricks & Tips ==== | + | |
- | + | ||
- | === Tip 1 === | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | 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. | + | |
- | + | ||
- | you have to remove some stuff from the system and try again. | + | |
- | + | ||
- | === Tip 2 === | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | a. Create ' | + | |
- | sudo mkdir -p / | + | |
- | + | ||
- | b. Change the folder owner to you (an option, can be managed as root): | + | |
- | sudo chown -R $USER:$USER / | + | |
- | + | ||
- | (change $USER to your user name) | + | |
- | + | ||
- | c. Download deb packages from Debian ' | + | |
- | + | ||
- | 64bit (amd64): efibootmgr, grub-efi, grub-efi-amd64, | + | |
- | 32bit (i386): efibootmgr, grub-efi, grub-efi-ia32, | + | Your desktop configuration should be copied to the /etc/skel directory to use it in a new live system. |
- | and place them in the / | + | Simply copy (as root) any desktop environment or window manager configuration to skel, for example: |
- | Make sure that the placed debs are in the same versions as available by APT before building the new iso. | + | JWM: |
- | === Tip 3 === | + | sudo cp ~/ |
- | Do not place much stuff in the /etc/skel directory. It breaks the live system and it won't start. | + | Openbox: |
- | === Tip 4 === | + | sudo cp ~/ |
- | If your machine is a few (or more) years old, and can't handle with strong ' | + | etc., etc. |
- | To change compression type, edit the configuration file (by any text editor): | + | Make sure that the target folder do exist in the ' |
- | sudo nano / | + | === Step 3 - Building process === |
- | and change | + | After changing all your custom setting, |
- | SQUASHFSOPTS=" | + | sudo sparkybackup dist |
- | to: | + | 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 === |
- | === Tip 5 === | + | 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: |
- | Used personal stuff for customization (wallpaers, themes, etc.) have to be placed in system directories, | + | sudo sparkybackup clean |
- | Put your stuff in dirs, such as: | + | ==== Shortcuts ==== |
- | /opt/ | + | Starting from version 20171009, the tool got text line shortcuts called " |
- | /usr/share/ | + | * 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 should also read [[tricks_tips|Tricks & Tips]] page. | ||