Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hundle slash and correct options variables #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AnouarBe
Copy link

Hello,

I discovered a bug when trying to backup the / , for example : /home/dir is stored in the tree as "ome/dir" without the "h".

I corrected a mistake when using options with argparse, options like ssh-C should be used in the script like this ssh_C.

I added some explicit comments to help me to understand some verbose message.

AnouarBe added 2 commits March 2, 2013 21:40
+ Added some comments
+ Changed some parameters to be more explicit
+ Add the use of the module argparse
+ Add --exclude option to exclude dirs from the backup
 - Corrected the bug caused by the - with options (replace it with _)
 - Used a hash instead of a Namespace for the ARGS variable
 - Corrected the bug which doesn't allow to backup / correctly
@soloturn
Copy link

soloturn commented Dec 28, 2019

@AnouarBe would you mind to split up your pull request so one is a minimal change that fixes only the problem, and the other(s) add comments, etc? it might distract or make it difficult to understand if you want to handle directories starting with a slash, and the commit then changes option variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants