Source

scripts / backup-hamster.sh

Full commit
1
2
3
4
5
6
7
8
9
#!/bin/sh
echo "Making a backup of the Hamster database..."
DBPATH=".local/share/hamster-applet/hamster.db"
FILENAME="backup/hamster/`date +%Y-%m-%d-%H%M`.db"
echo "Saving $HOME/$DBPATH as $HOME/$FILENAME"
cp $HOME/$DBPATH $HOME/$FILENAME
echo "Compressing the file as $HOME/$FILENAME.bz2"
bzip2 $HOME/$FILENAME
echo "...done."