rfmoz / keepconf Goto Github PK
View Code? Open in Web Editor NEWKeepconf - Tool for backup and track files from remote hosts.
Keepconf - Tool for backup and track files from remote hosts.
Loving the script but confused. Started off as a "how do I get a previous revision of this file" and I ran into the below. Wondering if you could clarify if i'm doing something incorrectly?
So I have the config set to commit True, local repo but when I go to the folder where the localhost is and issue a git status, it says no commits.
just for argument, i did a "git add *" and "git commit -m 'first'" to try and i get errors.
There are repos within the backed up folders but I'm not sure how to get around that.
server6:/home/keepconf/hosts # git status
On branch master
No commits yet
Untracked files:
(use "git add ..." to include in what will be committed)
.gitignore
localhost/
nothing added to commit but untracked files present (use "git add" to track)
server6:/home/keepconf/hosts # git add *
warning: adding embedded git repository: localhost/etc/apache2/custom.d/apache-ultimate-bad-bot-blocker
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add localhost/etc/apache2/custom.d/apache-ultimate-bad-bot-blocker
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached localhost/etc/apache2/custom.d/apache-ultimate-bad-bot-blocker
hint:
hint: See "git help submodule" for more information.
warning: adding embedded git repository: localhost/opt/code/Amsterdam
warning: adding embedded git repository: localhost/opt/code/RedditImageGrab
warning: adding embedded git repository: localhost/opt/code/deluge-labelplus
warning: adding embedded git repository: localhost/opt/code/docker-bro
warning: adding embedded git repository: localhost/opt/code/docker-snort
warning: adding embedded git repository: localhost/opt/code/dockerkippo/docker-kippo-graph
warning: adding embedded git repository: localhost/opt/code/dockerkippo/docker-kippo
warning: adding embedded git repository: localhost/opt/code/ipset-blacklist.original
warning: adding embedded git repository: localhost/opt/code/iptables
warning: adding embedded git repository: localhost/opt/code/kali-stuff
warning: adding embedded git repository: localhost/opt/code/torrent-cleaner
warning: adding embedded git repository: localhost/opt/ssh-find-agent
server6:/home/keepconf/hosts #
server6:/home/keepconf/hosts # git status
fatal: bad object HEAD
fatal: 'git status --porcelain=2' failed in submodule localhost/etc/apache2/custom.d/apache-ultimate-bad-bot-blocker
server6:/home/keepconf/hosts # git commit -m
error: switch `m' requires a value
server6:/home/keepconf/hosts # git commit -m 'first'
You have both localhost/opt/code/deluge-labelplus and localhost/opt/code/deluge-labelplus/LabelPlus.egg-info/PKG-INFO
You have both localhost/opt/code/deluge-labelplus and localhost/opt/code/deluge-labelplus/LabelPlus.egg-info/PKG-INFO
error: Error building trees
server6:/home/keepconf/hosts # git status
fatal: bad object HEAD
fatal: 'git status --porcelain=2' failed in submodule localhost/etc/apache2/custom.d/apache-ultimate-bad-bot-blocker
Dear all,
I was trying to troubleshoot why I was getting 'Hosts not rsync'ed' and traced it back down to symlinks that point nowhere.
I wanted to exclude them but still got rsync errors. In verbose mode I found that initial list was converted to lowercase before it is fed to rsync. You can test this by specifying anything with upper case letters (eg !/Somefile) and checking output of 'keepconf -v' it will say 'Exclude: /somefile' and the file in /tmp will contain same lowercased string.
I examined the code and it seems that it happens in 'extract_walk', but I am unable to pin-point where and to provide a patch.
Any help is appreciated.
Kind regards,
Momo.
It would be pretty useful if we could set SSH key file in the config for the host.
This can possibly aid in automation of defining hosts.
For example:
[main]
directory = /
max_size = 25M
rsync_user = root
rsync_key = /opt/ssh-secrets/server1-key.rsa
And then in the code just append it to ssh_rsync_opt when calling rsync.
I don't know how hard would it be to develop such an option.
It would be appreciated if you would take a look :)
Kind regards,
Momo.
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.