Backups tend to take up a lot of space, especially if you have a large database, such as a Koha SQL database with thousands of items and records. To save space, you can easily compress the file (or any folder) using one line on the Ubuntu Commandline.

If you don’t know how to backup, please read this article first. If you’ve already done your backup, do the following to compress your backup file or folder using tar and 7z. The reason we have to tar first is because 7z does not preserve permissions and owner/group info.

$ tar cf - #file-to-be-compressed| 7za a -si #archive.tar.7z  

where:

#archive.7z is the name of the new archive you are creating. Don’t forget to put the 7z extension

#file-to-be-compressed is the name of the file or folder you want to compress. If it is in a different folder to the one you are in, include the path.