firefox-profile-archiving-unix/firefox-save.sh

14 lines
326 B
Bash
Raw Permalink Normal View History

2022-03-14 19:45:28 +01:00
#!/usr/bin/env bash
# The purpose of this script is to zip a Firefox profile and stash it to a save location.
2022-09-22 18:53:08 +02:00
run_directory=$(dirname $(readlink -f "$0"))
source "$run_directory/variables.conf"
2022-03-14 19:45:28 +01:00
# Remove old archive
rm $save_path/$file_name
2022-03-14 19:45:28 +01:00
# Save profile
7z a $save_path/$file_name $firefox_data_path/$profile_name
2022-03-14 19:45:28 +01:00
exit 0