shallow-backup
                                
                                 shallow-backup copied to clipboard
                                
                                    shallow-backup copied to clipboard
                            
                            
                            
                        πββοΈ running shallow-backup interactively (backup all) does not save to the folder
I just installed shallow-backup via pip3 on macOS 10.15.6 and ran it with shallow-backup and it did not backup. I finally got it to work with shallow-backup -backup-all and it worked? But selecting backup all in the interactive mode did not work for me, it exited without output.
shallow-backup -show:
[31m[1m#######################
# SHALLOW BACKUP CONFIG
#######################
[0m
[31m[1mBackup Path: [22m/Users/calebjasik/shallow-backup[0m
[31m[1m
Dotfiles: [22m(Backup and Reinstall conditions will be shown if they exist)[0m
	.bash_profile
	.bashrc
	.config/git
	.config/nvim/init.vim
	.config/tmux
	.config/zsh
	.profile
	.pypirc
	.ssh
	.zshenv
	.config/shallow-backup.conf
[31m[1m
Root gitignore: [0m
	dotfiles/.ssh
	dotfiles/.pypirc
	.DS_Store
[31m[1m
Dotfiles gitignore: [0m
	.ssh
	.pypirc
	.DS_Store
[31m[1m
Configs:[0m
	/Users/calebjasik/Library/Application Support/Sublime Text 2 -> sublime2
	/Users/calebjasik/Library/Application Support/Sublime Text 3 -> sublime3
	/Users/calebjasik/Library/Application Support/Code/User/settings.json -> vscode/settings
	/Users/calebjasik/Library/Application Support/Code/User/Snippets -> vscode/Snippets
	/Users/calebjasik/Library/Application Support/Code/User/keybindings.json -> vscode/keybindings
	/Users/calebjasik/.atom -> atom
	/Users/calebjasik/Library/Preferences/com.apple.Terminal.plist -> terminal_plist
[31m[1mLowest supported version: [22m5.0.1[0m
Whereas shallow-backup -backup-all works fine?
$ % shallow-backup -backup-all
              dP                dP dP                        dP                         dP
              88                88 88                        88                         88
     ,d8888'  88d888b. .d8888b. 88 88 .d8888b. dP  dP  dP    88d888b. .d8888b. .d8888b. 88  .dP  dP    dP 88d888b.
     Y8ooooo, 88'  `88 88'  `88 88 88 88'  `88 88  88  88    88'  `88 88'  `88 88'  `"" 88888"   88    88 88'  `88
           88 88    88 88.  .88 88 88 88.  .88 88.88b.88'    88.  .88 88.  .88 88.  ... 88  `8b. 88.  .88 88.  .88
     `88888P' dP    dP `88888P8 dP dP `88888P' 8888P Y8P     88Y8888' `88888P8 `88888P' dP   `YP `88888P' 88Y888P'
                                                                                                          88
                                                                                                          dP	
	v5.0.1 by Aaron Lichtman (@alichtman)
Detected git repo.
Updating .gitignore file at /Volumes/UNTITLED/shallow-backup/.gitignore with config from root-gitignore
Updating .gitignore file at /Volumes/UNTITLED/shallow-backup/dotfiles/.gitignore with config from dotfiles-gitignore
##########
# DOTFILES
##########
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles/.config
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles/.config/nvim
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles/.config
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles/.config
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles/.config
Creating: /Volumes/UNTITLED/shallow-backup/dotfiles
Backing up dotfolders...
Backing up dotfiles...
Process Process-6:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.bash_profile'
Process Process-7:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.bashrc'
Process Process-8:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.config/git'
Process Process-9:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.config/nvim/init.vim'
Process Process-10:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.config/tmux'
Process Process-11:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.config/zsh'
Process Process-13:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.pypirc'
Process Process-14:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/calebjasik/.zshenv'
##########
# PACKAGES
##########
Backing up brew packages list...
Backing up brew cask packages list...
Backing up gem packages list...
Backing up cargo packages list...
Backing up pip packages list...
An error occurred while running: $ pip list --format=freeze
Backing up pip3 packages list...
Backing up npm packages list...
Backing up Atom packages list...
An error occurred while running: $ apm list --installed --bare
Backing up VSCode packages list...
Backing up macports packages list...
An error occurred while running: $ port installed requested
Backing up System Applications packages list...
#######
# FONTS
#######
Copying '.otf' and '.ttf' fonts...
#########
# CONFIGS
#########
Backing up configs...
Making new commit...
Successful commit.
also: ?????
       β File: pip3_list.txt
ββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
   1   β /usr/local/lib
   2   β /usr/local/lib/node_modules/@fraction/oasis
   3   β /usr/local/lib/node_modules/a11y
   4   β /usr/local/lib/node_modules/autoprefixer
   5   β /usr/local/lib/node_modules/broken-link-checker
   6   β /usr/local/lib/node_modules/create-elm-app
   7   β /usr/local/lib/node_modules/elm
   8   β /usr/local/lib/node_modules/elm-format
   9   β /usr/local/lib/node_modules/elm-test
  10   β /usr/local/lib/node_modules/gitignore-it
  11   β /usr/local/lib/node_modules/katex
  12   β /usr/local/lib/node_modules/moon-cli
  13   β /usr/local/lib/node_modules/netlify-cli
  14   β /usr/local/lib/node_modules/npm
  15   β /usr/local/lib/node_modules/postcss-cli
Well, this seems like a problem. Unfortunately, I don't have time to dig deep into it right now.
It will be interesting if replicated after I reset my computer, since the reason I've reinstalled this tool again is to make shallow backups of my stuff before I wipe my machine
I'm sure you know this already, but I'd strongly recommend having a complete TimeMachine backup as a redundancy measure, in case there's some weird issue with shallow-backup (like this :)).
True, true. Iβm currently waiting for the second hour of my machine to finish a Time Machine backupβ¦ but I verified that it created the files I needed β I mostly wanted to use this for the backup creation, less so the automated restoration.
Caleb Jasik [email protected] https://jasik.xyz
On September 12, 2020 at 10:25:51 PM, Aaron Lichtman ([email protected]) wrote:
I'm sure you know this already, but I'd strongly recommend having a complete TimeMachine backup as a redundancy measure, in case there's some weird issue with shallow-backup (like this :)).
β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
My workflow depends on both the automated backup and restoration (and I've built out a fairly comprehensive testing suite to catch errors), so this bug is concerning. I've got way too much on my plate at the moment to give you any sort of estimate for when I'll get to this, but it's on my radar. Thanks for reporting this.
sounds good
With regards to https://github.com/alichtman/shallow-backup/issues/282#issuecomment-691525613, the issue is here. The npm backup step is using dest in line with the rest of the backup steps, but it should be using temp_file_path, resulting in it overwriting the pip3 step right before it. I'd create a PR myself for this tiny change, but I'm having some permission issues for whatever reason.
@tim-coutinho Having permission issues creating the PR or when testing the code? I'm happy to help with either. The fix sounds good to me.
Let's make a new issue for it and just tag this issue in a comment. I try to keep a separate branch for each feature / bug fix for a more useful git history
Getting a 503 when trying to push my local branch to remote, tried my work machine and personal machine as well as cloning via https and ssh, no dice. Not sure if it's an issue on my end or the repo. I'll create a new issue.
On further research, looks like it could be a repo issue, as I can't edit labels either, indicating I don't have write access to the repo. It looks like others have been able to submit PRs though, so I'm not sure why that would be.
I donβt believe you have write privileges for this repo, however, if you fork the project, push to your remote and open a PR, you should be golden.
On Wed, Dec 16, 2020 at 1:08 PM Tim Coutinho [email protected] wrote:
Getting a 503 when trying to push my local branch to remote, tried my work machine and personal machine as well as cloning via https and ssh, no dice. I'll create a new issue.
β You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/alichtman/shallow-backup/issues/282#issuecomment-746847951, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5FN5M6Q2OSGKXTZAO5UMLSVEAUTANCNFSM4RJZJSTQ .
Seems like this was resolved.