Giter Site home page Giter Site logo

Comments (7)

cytopia avatar cytopia commented on May 25, 2024

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.

Drugantibus avatar Drugantibus commented on May 25, 2024

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.

Drugantibus avatar Drugantibus commented on May 25, 2024

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.

cytopia avatar cytopia commented on May 25, 2024

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:

  1. It already works with normal unix tools
  2. 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.

Drugantibus avatar Drugantibus commented on May 25, 2024

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.

cytopia avatar cytopia commented on May 25, 2024

With what rsync option do you usually do a / backup?

from linux-timemachine.

cytopia avatar cytopia commented on May 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.