I need help with a configuration in archlinux. I installed timeshift, but the graphical…
- User
I need help with a configuration in archlinux. I installed timeshift, but the graphical interface doesn't show the size of the back up. What am I doing wrong?
Assistant
To display the size of the backup in the graphical interface for timeshift on archlinux, you can use a custom script. First, make sure you have the following files in your home directory:
bash~/.config/timeshift/pre_snapshot/pre_snapshot.sh ~/.config/timeshift/post_snapshot/post_snapshot.shIn the
pre_snapshot.shfile, add the following lines:bash#!/bin/bash timeshift --list-snapshots | awk 'NR>1 {print $3}' | while read -r size; do echo "Backup Size: $size" doneIn the
post_snapshot.shfile, add the following lines:bash#!/bin/bash timeshift --size-snapshot | awk '{print $3}'Ensure that both files are executable by running the following command:
bash- User
when i use timeshift --list ,it doesn't show the snapshot size
Assistant
If the
--listcommand in timeshift doesn't show the snapshot size, you can use a different method to display the backup size. Instead of using thepre_snapshot.shscript, try modifying thepost_snapshot.shscript to show the size of the backup after creation.In the
post_snapshot.shfile, replace the existing lines with the following:bash#!/bin/bash timeshift --size-snapshot | awk '{print $3}'This modification will display the size of the backup after it has been created.
If you want to display the size of the backup while it's being created, you can use the
--waitoption. When creating a backup with timeshift, use the following command:bashtimeshift --waitThis command will wait until the backup is completed before displaying the size.
Remember to make both
pre_snapshot.shandpost_snapshot.shfiles executable using thechmod +xcommand:bash