... and another

This commit is contained in:
Timothy Allen 2020-04-26 22:12:13 +02:00
parent cb6472a980
commit b251ffda2b

View File

@ -10,6 +10,7 @@
epoch=$( date +%Y%m%d%H%M ); epoch=$( date +%Y%m%d%H%M );
server=10.25.0.1 server=10.25.0.1
#server=treehouse.org.za
backups=~/Downloads/firefox backups=~/Downloads/firefox
copy() { copy() {
@ -54,7 +55,7 @@ fi
if [ -x ~/bin/firefox_decrypt.py ]; then if [ -x ~/bin/firefox_decrypt.py ]; then
do_copy=0 do_copy=0
mkdir -p ${backups}/passwords mkdir -p ${backups}/passwords
previous=$( ls ${backups}/passwords/firefox_passwords.* | tail -1 ) previous=$( ls ${backups}/passwords/firefox_passwords.* 2>/dev/null | tail -1 )
echo '' | ~/bin/firefox_decrypt.py > ${backups}/passwords/firefox_passwords.${epoch} 2>/dev/null echo '' | ~/bin/firefox_decrypt.py > ${backups}/passwords/firefox_passwords.${epoch} 2>/dev/null
if [ -f "${previous}" ]; then if [ -f "${previous}" ]; then
if diff -q ${previous} ${backups}/passwords/firefox_passwords.${epoch} >/dev/null; then if diff -q ${previous} ${backups}/passwords/firefox_passwords.${epoch} >/dev/null; then