Skip to content

Commit

Permalink
Merge ac9d194 into bdd0d32
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed Dec 14, 2018
2 parents bdd0d32 + ac9d194 commit fc6853d
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions shallow_backup/backup.py
Expand Up @@ -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("/")]
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit fc6853d

Please sign in to comment.