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

Feature to allow spaces in path #21

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

Conversation

Oscar65
Copy link

@Oscar65 Oscar65 commented Sep 19, 2018

Added feature to allow backup/restore directories with spaces

To add space in directory use the escape secuence to add space in path (backslash before). This is an example in cya.conf:
BACKUP_DIRECTORIES="/This\ is\ one/a\ test/"
OVERRIDE_BACKUP_DIRECTORIES="/This\ is\ other/second\ test/"
EXCLUDE/This\ is\ other/="exclude\ me/"
BACKUP_FILES="/This\ is\ third/test\ third/cya.test /This\ is\ third/test\ third/cya\ test\ with\ spaces"

Tested save and restore. Works on directories and files with spaces. Also works on EXCLUDE directory option with spaces.

For instance, if BACKUP_DIRECTORIES="/usr/local/bin/" only will backup this subdirectory.
To add space in directory use the escape secuence to add space in path (backslash before). This is an example in cya.conf:
BACKUP_DIRECTORIES="/This\ is\ one/a\ test/"
OVERRIDE_BACKUP_DIRECTORIES="/This\ is\ other/second\ test/"
EXCLUDE/This\ is\ other/="exclude\ me/"
BACKUP_FILES="/This\ is\ third/test\ third/cya.test /This\ is\ third/test\ third/cya\ test\ with\ spaces"

Tested save and restore. Works on directories and files with spaces. Also works on EXCLUDE directory option with spaces.
@Oscar65 Oscar65 changed the title Feature allow spaces in path Feature to allow spaces in path Sep 19, 2018
@cleverwise
Copy link
Owner

That too has been added for the next version. It currently has the following but needs more testing:

  • Directories command now shows MAX_SAVES number for easy reference
  • Directories command now lists excluded directories and files for easy reference
  • Mydata command now shows available profile names
  • Ability to override top level backup directories list and set your own - OVERRIDE_BACKUP_DIRECTORIES configuration value
  • Mydata command now supports multiple source (backup) directories in a single profile

@cleverwise
Copy link
Owner

I'll add you as a tester in the next version.

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