From ac9d194314ecbffbb1b120d5ae85bccc2a01a711 Mon Sep 17 00:00:00 2001 From: Aaron Lichtman Date: Fri, 14 Dec 2018 08:35:38 -0600 Subject: [PATCH] Remove Sublime [2/3] packages backup --- shallow_backup/backup.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/shallow_backup/backup.py b/shallow_backup/backup.py index 4831a7c8..5499edd7 100644 --- a/shallow_backup/backup.py +++ b/shallow_backup/backup.py @@ -76,7 +76,7 @@ def backup_configs(backup_path, skip=False): print("TARGET:", target) dest = os.path.join(backup_path, target) if os.path.isdir(path_to_backup): - # TODO: Exclude Sublime/Atom/VS Code Packages here to speed things up + # TODO: Symlink to speed things up copytree(path_to_backup, quote(dest), symlinks=True) elif os.path.isfile(path_to_backup): parent_dir = dest[:dest.rfind("/")] @@ -138,24 +138,6 @@ def backup_packages(backup_path, skip=False): dest = "{}/apm_list.txt".format(backup_path) run_cmd_write_stdout(command, dest) - config_paths = get_config_paths() - - # sublime text 2 packages - sublime_2_path = os.path.join(config_paths["sublime2"], "Packages") - if os.path.isdir(sublime_2_path): - print_pkg_mgr_backup("Sublime Text 2") - command = ["ls", sublime_2_path] - dest = "{}/sublime2_list.txt".format(backup_path) - run_cmd_write_stdout(command, dest) - - # sublime text 3 packages - sublime_3_path = os.path.join(config_paths["sublime3"], "Installed Packages") - if os.path.isdir(sublime_3_path): - print_pkg_mgr_backup("Sublime Text 3") - command = ["ls", sublime_3_path] - dest = "{}/sublime3_list.txt".format(backup_path) - run_cmd_write_stdout(command, dest) - # macports print_pkg_mgr_backup("macports") command = "port installed requested"