bartfeenstra / backuppy Goto Github PK
View Code? Open in Web Editor NEWBackuppy backs up and restores your data using rsync ๐ธ
Home Page: http://backuppy.readthedocs.io/
License: MIT License
Backuppy backs up and restores your data using rsync ๐ธ
Home Page: http://backuppy.readthedocs.io/
License: MIT License
init
command to create a new configuration file, either as YAML (default, with comments) or JSON. Enable the stdio notifier by default, as well as sensible logging, and inform the user of how to consult the logs. (#51)init
command, which can output in JSON or YAML, I don't think we need dedicated conversion commands.--dry-run
or --simulate
option to commands taking configuration? (postponed to 0.4.0: #46)Can we simplify locations by requiring paths to be absolute? Then we can convert all other paths, if they are relative, to absolute ones in relation to these location paths.
A use case is adding file patterns (for rsync's --exclude=
and --include=
). rsync does not seem to resolve those against the source path if the patterns are relative.
The implementation would involve moving the paths from locations to the top-level configuration. We can simplify the configuration files' source
and target
settings by repurposing those to just take strings paths. A newly introduced source_type
and target_type
would default to path
, and a newly introduced source_configuration
and target_configuration
would contain any optional location configuration.
For local path locations, the source
and target
values may be relative. They will be provided in absolute form by resolving them against the location of the configuration file being used.
HOWEVER, this all depends on the source and target paths not changing. I don't foresee any problems within the scope of the use cases envisioned for Backuppy, but it's something to keep in mind.
-f
or -y
to override the confirmations and make the command non-interactive. (#53) (#56)--file
and --dir
arguments to the backup command, that will have the same effect as on the restore command. (#58)What should we do with symlinks pointing to locations outside include directories? Can rsync handle this out of the box?
--dry-run
or --simulate
option to commands taking configuration? We can also add something like --interactive
as a mutually exclusive option to -f
in order to force commands to be interactive. In this mode the back-up and restore commands can tell rsync to ask for manual host key verification. The thing is that our API (backup()
and restore()
) is not coupled to the shell. If we tell these API functions to be interactive, they need to interact with stdin. We can build this in an API-ish way by making these functions accept a stdin file handler. If it exists, interactive mode is enabled. If it isn't, all interaction is disabled.Notifier.warn()
which can be used to indicate why a command failed to execute, but if the cause isn't a problem, such as when no SSH location can be reached, because the command is run on cron and the machine is off Wi-Fi.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.