Comments (7)
The script does various checks/tasks on the remote server before and after the actual backup (e.g.: https://github.com/cytopia/linux-timemachine/blob/master/timemachine#L117).
I'd recommend to use ssh keys instead, not only for the purpose of this issue.
from linux-timemachine.
I managed to convince my manager to allow me to configure SSH keys, thanks!
I'd like to also make a feature suggestion: would it be possible to have the script write an error log in case something goes wrong? I know I can timemachine ... > log.txt
, but I think it'd be more convenient for this to happen automatically, with hostnames and timestamps in the filenames :)
Let me know If you'd like me to open a separate issue for this.
from linux-timemachine.
I also think it would be really useful if there was a switch like --root-backup
(or automatic detection of backing up the / folder) so that it skips some dirs like /proc, /dev, etc. (the arch wiki suggests --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"}
I'm not very experienced in bash development, but I can have a try at a PR if you'd like!
from linux-timemachine.
I managed to convince my manager to allow me to configure SSH keys, thanks!
That's good to hear!
I'd like to also make a feature suggestion: would it be possible to have the script write an error log in case something goes wrong? I know I can
timemachine ... > log.txt
Either way you'd probably had to write something lile > /path/to/log/file
or if it was an argument: -w /path/to/log/file
So I guess it does not make much of a difference, or? Additionally to note: You can currently have information log messages and error log messages separate via output direction: > /path/to/info/log 2> /path/to/error/log
. In general I would rather not add a code for this because of:
- It already works with normal unix tools
- I want to keep the code as small as possible to keep the risk of bugs low and make it easier for people to review
I also think it would be really useful if there was a switch like
--root-backup
Can you explain what is meant by this
from linux-timemachine.
All of the listed directories are populated at boot time, so there's no need to back them up; plus, some of them don't play nice with rsync: /dev/ is full of "non-regular files" that rsync skips, and backing up /proc/ results is lots of wasted space and rsync errors since new "files" are continuously created and deleted ("file has vanished"), and there's no data there anyway.
This can already be achieved by appending options to rsync, but I imagine backing up /
is a pretty common use case.
from linux-timemachine.
With what rsync option do you usually do a /
backup?
from linux-timemachine.
@Drugantibus I will mark this question regarding SSH password as solved. If you have a follow up question for the default arguments, please use a new issue and provide your suggestions.
from linux-timemachine.
Related Issues (20)
- Is there a reason for not allowing a remote source? HOT 3
- exclude file/dir options? HOT 3
- suggestion to add --without-overlaps option HOT 1
- Suggestion | Allow remote source HOT 2
- Suggestion: multiple SOURCEs HOT 2
- suggestion: my excludes, necessary / useful HOT 1
- Feature: a form of progress indication HOT 1
- Problem with some paths/volume names HOT 8
- File permission issues cause backups to stop being created HOT 8
- How to use --files-from from rsync? HOT 1
- How to skip broken soft links? HOT 2
- Missing destination folder is resulting in script fail HOT 2
- Restricted ssh commands compatibility (rrsync) HOT 5
- Missing variable when local directory is missing HOT 6
- Problem with moving .inprogress dir HOT 2
- include file options
- Backup fails because of a file that is not even into the source directory to be backed up `sync warning: some files vanished before they could be transferred (code 24)` HOT 1
- Errors from path arguments with spaces
- Allow rsync options to be passed without requiring double quoting (--filter="'dir-merge /.rsync-filter'")
- Suggestion: improved doc for running tests / testing on MacOS 13
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 linux-timemachine.