Code Monkey home page Code Monkey logo

python-rsync-system-backup's People

Contributors

clvz avatar xolox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-rsync-system-backup's Issues

More documentation needed

The actual content of the /usr/sbin/process-vps-backups example file is not shown.
What should be contained in this file?

Allow customizing of snapshot datetime format

First of all, thanks for this tool, this is a really convenient way of getting sane backups working quickly :).

I have one suggestion and would send a PR if you agree with the addition: I'd like the datetime format that is used as the directory name of the snapshot to be configurable from the cli. The reason for this is that I am using this on a pretty basic NAS system that exposes the backup folders read only as samba shares, but windows does not allow the colon character in file or directory names that is used as an hour/minutes separator by this script. If this where customizable to e.g. dash then the backups could be directly accessed via SMB. Because this is a NAS system with some weird busybox distribution, this change seems like the most straightforward and maybe others would like to be able to customize the format as well.

If you agree I would add a config option to override the strftime call in

time.strftime('%Y-%m-%d %H:%M:%S'))

Would you be willing to consider such a PR?

`cannot create hard link` during snapshot

I am not sure whether this is a bug in the code or in the documentation (or both ๐Ÿ˜…).

This is more or less what I did:

$ mount /dev/sdb1 /data
$ mount /dev/sdc1 /mnt/external
$ rsync-system-backup /data /mnt/external

The "backup" step worked fine. Then the script tried to create a snapshot under /mnt/2017-12-05 15:24:47/, and I get tons of errors like this, since /mnt/external and /mnt/2017*` are on two different disks:

cp: cannot create hard link '/mnt/2017-12-05 15:24:47/...' to '/mnt/external/...': Invalid cross-device link

In general, I'd say that creating the snapshots in the parent directory of the destination is a bit confusing: or, at least, it's not what I'd expect. Maybe it would be better to create them under a special /mnt/external/snaphosts folder, or similar?

FileNotFoundError: [Errno 2] No such file or directory: '/proc'

Upon installation, the command line interface does not work due to '/proc' missing. I have the proc directory as well.

The error resides in
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/proc/core.py", line 693, in find_processes

Should note that this installation was done by pip install

More Flexibility (and Docs)

Hi, this looks great, but when I tried to use it I realised that I needed --copy-dirlinks in there too. And I imagine other people will want other features. So it struck me that a way to pass arbitrary options down to rsync would be nice.

Also, it would be good if the docs included some reference to your python-rotate-backups project - it wasn't until I read that that I understood what was happening.

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.