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

Implement pick_usb_mount() #29

Open
tgharold opened this issue Aug 11, 2015 · 0 comments
Open

Implement pick_usb_mount() #29

tgharold opened this issue Aug 11, 2015 · 0 comments
Milestone

Comments

@tgharold
Copy link
Owner

Need a function to pick which USB drive target to use given the inputs of:

  • usb_base
  • usb_prefix (array)
  • usb_fiilename
  • usb_suffix (array)

Search pattern is to look for all combinations of:

(usb_base)/(usb_prefix)(usb_filename)(usb_suffix)

Example:

usb_base = /mnt/offsite
usb_prefix = A B
usb_filename = BACKUP
usb_suffix = 1 2

Search space is thus:

/mnt/offsite/ABACKUP1
/mnt/offsite/ABACKUP2
/mnt/offsite/BBACKUP1
/mnt/offsite/BBACKUP2

@tgharold tgharold added this to the Current milestone Aug 11, 2015
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

No branches or pull requests

1 participant