Comments (3)
Well at this point it is really just see what people want and the level of interest.
However there isn't much value in repos at this point. For starters this is just a BASH script and nothing binary (short of all code is binary based ;-)) Plus it doesn't matter your distro or *nix as all can pull from Github. You can even just do a Github clone/pull and rsync or something.
Did you have some thoughts?
from cya.
CYA has a lot of uses and really can go everywhere from desktops, to servers, to IoT. For example I have deployed it on Raspberry Pi's, along with desktops and servers.
However to answer your question about using an online or local repo vs CYA.
-
Online Repos - Well here CYA will be faster. There should be no downloading as the files are stored on the node itself or at least on local network storage in the case of say a SAN mounted block device.
-
Local Repos - Obviously speed won't be as great but most likely the repo isn't stored on the node itself. With CYA there is zero network bottleneck this is true even if say / and /home are local network mounted blocks. This is because the copying of files should be done on that device like SAN to SAN.
However regardless repos don't make it so easy to create a working snapshot. CYA can and will restore you to the exact state as the snapshot. So let's say you installed Ubuntu 16.04, have been keeping up with the updates, have installed some PPAs, a few snaps, even custom compiled a few apps.
When you use CYA on October 28, 2017 you create an exact snapshot of that very moment. Now you restore say on October 29, 2017 your restored system will be as it was on October 28, 2017 with all the updates and patches applied up to that time including snaps, PPAs, custom compiled apps, etc.
If you restore from the Ubuntu repo you won't have all your PPAs, custom compiled apps, snaps, themes, etc. Oh sure you may generate a file of some repo stuff installed but what if you have a custom compiled app? Nope. What about a custom theme? Maybe or maybe not depending. What about the state of your log files? Those will go back to the repo state where as CYA will restore your logs just as they were when the snapshot was taken.
Plus even if that generated list of installed apps is used the reinstall must go down the list installing each one then rolling to the next one. CYA is just a straight copying the files back. That is MUCH faster. In fact in five to ten minutes you can completely return your system back to the same state. In our tests five minutes was more common. What repo method can do that with all your custom packages, updates, software? Now what if you custom edited /etc/fstab to mount a sshfs share. Is a repo going to do that? Nope, but CYA will.
So bottom line is CYA is faster period as it is straight copying files. There is no processing anything. CYA also takes a complete snapshot of the current the state while using repos will not.
from cya.
I think there was some confusion about my question.
I meant what are the advantages of backing up system libs and executables using cya over re-installing system from local mirror or online.
To give an example of an existing process; on Debian-based systems dpkg -l
gets a list of installed packages (using apt). You can also dpkg --get-selections >~/cya/package-log-debian
and later dpkg --set-selections <~/cya/package-log-debian
to restore. (I'm sure there is a centos/rpm system equivalent).
I know snap and other systems (including docker) are a bit more of a pain, but containers don't seem to be targeted, and this says it's specifically for system-backups (but I think it looks like it handles snaps).
I was trying to understand if there is a reason this fits some people better than those solutions, where the holes are in other solutions and where this fits in. (There must be some gap between imaging entire file-systems and desired-state)
Don't get me wrong I'm not down on cya, it looks great. I'd just love to understand why, and where it's designed for, perhaps where it's going, and I feel a roadmap might help communicate that without monopolising on your time.
from cya.
Related Issues (20)
- Some "TODO" suggests, notes, recommendations, smells, etc HOT 13
- cya mydata - expand / autocomplete profile names HOT 9
- 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
- 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
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.