This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sparky_backup_core [2017/03/05 19:37] – created pavroo | sparky_backup_core [2021/05/04 13: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, | + | Sparky Backup Core lets you backup your existing Sparky installation, |
==== Installation ==== | ==== Installation ==== | ||
Line 11: | Line 11: | ||
Sparky Backup Core provides two tools: | Sparky Backup Core provides two tools: | ||
- | - ' | + | * Sparky Backup |
- | - ' | + | * SparkyLinux Installer |
==== Usage ==== | ==== Usage ==== | ||
- | Usage of the ' | + | Usage of the ' |
- | === Step 1 === | + | === Step 1 - Basic Configuration |
+ | The tool configuration is placed in /etc directory: | ||
- | === Step 2 === | + | / |
- | === 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 === | + | |
- | 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. | + | LIVECDLABEL=" |
- | you have to remove some stuff from the system and try again. | + | * c. - New iso image name: |
- | === 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: | + | etc. |
- | a. Create ' | + | I suggest not changing |
- | sudo mkdir -p / | + | |
- | b. Change the folder owner to you (an option, can be managed as root): | + | === Step 2 - Desktop Configuration === |
- | sudo chown -R $USER:$USER / | + | |
- | (change $USER to your user name) | + | Your desktop configuration should be copied |
- | c. Download deb packages from Debian ' | + | Simply copy (as root) any desktop environment or window manager configuration to skel, for example: |
- | 64bit (amd64): efibootmgr, grub-efi, grub-efi-amd64, | + | JWM: |
- | 32bit (i386): efibootmgr, grub-efi, grub-efi-ia32, | + | sudo cp ~/ |
- | and place them in the / | + | 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/ |
- | === 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 |
- | === Tip 4 === | + | === Step 3 - Building Process |
- | If your machine is a few (or more) years old, and can't handle with strong ' | + | After creating |
- | To change compression type, edit the configuration file (by any text editor): | + | sudo sparkybackup dist |
- | sudo nano / | + | 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 === |
- | | + | 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 |
- | | + | ==== Shortcuts ==== |
+ | Starting from version 20171009, the tool was upgraded with text line shortcuts called " | ||
+ | |||
+ | * spb dist = sparkybackup dist | ||
+ | * spb clean = sparkybackup clean | ||
+ | * spb edit = nano / | ||
+ | * 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|< | ||
+ | </ | ||