Comments (9)
Well that would make things easier. However it would also eliminate the safety check. I'll look into this feature.
from cya.
"safety checks" are strange, since us humans tend to go around them ;). If you have, let's say, 5 profiles (just a few).... more than likely you will end up getting the list with
$ grep -i mydata_ /home/cya/cya.conf
MYDATA_johnfiles="/home/john/ /mnt/wd-password/john/"
MYDATA_johnwd="/home/john/ /mnt/wd-password/john/"
MYDATA_johnnas="/home/john/ /nas/john/"
MYDATA_maryfiles="/home/mary/ /mnt/wd-password/mary/"
and then, copy & paste the name you are after...
IMHO, this copy & paste and expanding automatically end up with the same result with the same "safety check"... is it really that dangerous from a human mistake point of view ?
Just a thought
from cya.
That is how I was thinking of doing it. A list function rather than tab. I personally like listing the directories as that is the safety check rather than hitting tab to auto fill a profile. It seems the list is a good blend of both. :-)
from cya.
Nice... maybe for sake of simplicity
cya mydata [enter]
could return the list...
What do you think ?
from cya.
Yeah that would work.
from cya.
Okay 2.3.1+dev/2.4 will list available profile names.
from cya.
My initial tests executing
cya mydata
yields the result
☀ Cover Your Ass(ets) v2.3.1 ☀
ACTION ⯮ Backing Up Your User Data
{ERROR} No such backup profile
Available backup profiles:
---------------------------------------------
test1
david
Although technically true, the fact of not providing a profile was done on purpose to get the list.
Should I be getting an error message ? In order to get the list, it is what I am supposed to do. Why the error?
I understand that if a profile was provided and it does not exist, the error should be displayed. However, no profile was provided in order to retrieve the list.
from cya.
Fair enough. I modified 2.3.2 to display "Please specify a backup profile" instead of an error.
from cya.
Works as expected
from cya.
Related Issues (20)
- Some "TODO" suggests, notes, recommendations, smells, etc HOT 13
- Roadmap HOT 3
- Last Run indicator HOT 6
- Bash Tab Completion HOT 15
- Last Profile Used HOT 3
- rsync unexpected behavior HOT 11
- Show MAX_SAVES value HOT 4
- cya directories show excluded dirs and files HOT 5
- How to specify to exclude a root level directory HOT 7
- cya mydata - multiple source directories HOT 9
- cya does not handle directory names with spaces HOT 20
- missing exclude files from configfile documentation ? HOT 9
- Inconsistent syntax dealing with root directory names with spaces HOT 5
- Avoid ambiguity in what forward slash we are referring to HOT 3
- Wonderful, but inconsistent "Currently Doesn't Exist:" section HOT 3
- Using cya mydata <profilename> with EXCLUDE statements HOT 3
- SANATIZE_VAR in cya script HOT 5
- What if harddisk dies? HOT 4
- Question: Changing cya HOME_DIR HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cya.