diff --git a/main.py b/main.py index cb68e06..6994f29 100644 --- a/main.py +++ b/main.py @@ -30,7 +30,7 @@ def arguments_parser(): 'and can also contains the BackandUp own configuration.') parser.add_argument('--composefile', action='store', default='./docker-compose.yml', help='compose file to parse. By default it looks for a docker-compose.yml in its folder.') - parser.add_argument('--sshfolder', action='store', default='~/.ssh', + parser.add_argument('--sshfolder', action='store', default=f'{os.path.expanduser( '~' )}/.ssh', help='ssh folder for sftp connection. By default it uses ~/.ssh.') parser.add_argument('-x', '--bindexclude', action='store', default=None, help='Patterns of volume or bind to exclude from the backup.')