This commit is contained in:
Penelope Gwen 2024-12-10 15:10:14 -08:00
parent 0de14df9d9
commit 3dbe3a68d0
2 changed files with 9 additions and 3 deletions

8
debian/changelog vendored
View file

@ -1,4 +1,10 @@
sapphrc (1.3.2) UNRELEASED; urgency=medium
sapphrc (1.3.3) unstable; urgency=medium
* synchronization now deletes files. be careful!
-- Penelope Gwen <support@pogmom.me> Tue, 10 Dec 2024 15:09:01 -0800
sapphrc (1.3.2) unstable; urgency=medium
* bug fixes

View file

@ -12,11 +12,11 @@ sapphrc_rsync(){
case ${sync_direction} in
backup)
echo "backup"
rsync -arvSH --files-from="${include_list}" --exclude-from="${exclude_list}" --exclude '.config/sapphrc/' "${HOME}" "${backup_homedir}"
rsync -arvSH --files-from="${include_list}" --exclude-from="${exclude_list}" --exclude '.config/sapphrc/' "${HOME}" "${backup_homedir}" --delete
;;
restore)
echo "restore"
rsync -arvSH --files-from="${include_list}" --exclude-from="${exclude_list}" --exclude '.config/sapphrc/' "${backup_homedir}" "${HOME}"
rsync -arvSH --files-from="${include_list}" --exclude-from="${exclude_list}" --exclude '.config/sapphrc/' "${backup_homedir}" "${HOME}" --delete
;;
*)
echo "unknown sync direction"