There are many backup tools for Linux-based operating systems, as found in the Kubuntu Focus Suite. BackInTime and System Rollback are pre-configured and ready to use immediately. Other tools are useful for different situations.
Please read the disclaimer before proceeding. We review and update guided solutions regularly. If you have suggestions or requests, please write support@kfocus.org.
BackInTime is installed, pre-configured, and ready-to-run on the Kubuntu Focus. You may use this tool to restore an earlier version of a file. By default, it only backs up files in users' home directories below a minimum size. It also ignores cache and temporary directories that would otherwise be useless. Examine the BackInTime settings to see and change what files are backed-up. By default, backups are stored under /home/backintime
.
The default setup is useful in recovering from human errors on smaller files and configurations, but it does not protect against drive failures because the backups are stored on the home disk. For this reason, we highly recommend you use an external or remote drive to store backups instead. To learn more, please see the official BackInTime documentation. Please make sure you adjust the backup filter to allow larger files and test your backups to ensure you capture all the data you need.
System Rollback is available by default on 24.04 LTS (Noble) systems with BTRFS. You may use it to take snapshots of the root and boot filesystems, which can later be restored. System Rollback does not take snapshots of user home directories.
See the System Rollback documentation to learn how to create and restore snapshots.
You can back up data to an external USB drive:
/home
. You should now see all user home directories on your system./home
directory to the USB drive by dragging them from the left-hand file-area to the right-hand file area. When prompted, select copy
. Do not MOVE the directories as this could harm your system!.Safely Remove
and then remove the physical drive after confirmation by the Device Notifier in the system tray.Because of file permissions, you may not be able to copy all files. In this case, you will want to use sudo and root to copy between the directories. You may right-click on a pane in the directory and then select Actions > Open Terminal
. From there, you can use sudo
to copy files as root into the media directory.
If you decide to clean install the OS, we recommend you back up your data to a cloud drive such as Dropbox, or as described in Back Up to an External USB Drive, above. We recommend you back up at least the following data:
desktop-screenshot.png
of your desktop. Use spectacle
to create this.apps-to-reinstall.txt
, where you list all the apps you know you want to install again. We recommend you look through the app menu for guidance and use Kate or other editor to enter your picks into this file. This is casual, and you can add other notes there as desired.installed-packages.txt
, that lists all installed packages. To create, run in Konsole terminal apt list --installed > installed-packages.txt
.home-backup
or similar. This can by copied to the drive using Dolphin. Keep in mind application configuration data is generally stored in hidden files, so you will have to enable 'Show hidden files' in Dolphin to see them. Also, do NOT use the default BackInTime backup because it may skip large files you may wish to back up.etc.tgz
, which contains all the files from the /etc
directory. To create in a Konsole terminal, run sudo tar cvzf etc.tgz /etc
.If you are using an external USB drive, remember to use the Safely Remove
step to ensure all data is completely copied.
After a Clean Install, you can restore apps and data:
desktop-screenshot.png
to help restore your desktop as desired.apps-to-reinstall.txt
and installed-packages.txt
to help guide what apps you want to install. We recommend installing apps from Curated Apps when available, as this will set up the correct repositories and keys in almost all cases.meld home-backup/.config ~/.config
or meld home-backup/.ssh ~/.ssh
. Keep in mind application configuration data is generally stored in hidden files, so you will have to enable 'Show hidden files' in Dolphin to see them.etc.tgz
file and compare it to the new /etc
directory, e.g. sudo -E meld ./etc /etc
.Cloud storage, such as Dropbox, Microsoft OneDrive, or Google Drive, can often provide multiple versions of files using heuristics. However, we recommend explicitly versioned backups, such as those provided by SCMSs (Source Control Management Systems like Git) for more exact control. Ultimately, one must balance convenience and storage requirements with completeness. And remember, any backup solution is better than none.
This is a partial revision history. See the git
repository for all entries.
2024-09-09 c8e9496f
Expanded instructions for Noble2024-06-06 ad0fcf25
Update for Noble2023-11-18 e770b1c6
Add search and help bar2023-01-10 cd436779
Detail recommended backup data and actions2022-12-14 984993c4
Add clean-install backup recommendations2022-11-21 8ff6778d
Update to backintime to include jammy and focal paths2021-10-10 5728326e
Reformat to 2-column2021-09-22 dc862884
Update link and headline colors2021-08-23 681261b4
Review and update codeblocks2021-06-01 5a195210
First publicationWe try hard to provide a useful solution validated by professionals. However, we cannot anticipate every situation, and therefore cannot guarantee this procedure will work for your needs. Always backup your data and test the solution to determine the correct procedure for you.
THIS SOLUTION IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOLUTION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
HAVE QUESTIONS?Call 844-536-2871 or write
TellMeMore@kfocus.org | GET FOCUS MERCH