Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 10:50
    mtx-z commented #927
  • Jan 29 2019 10:53
    dalpo commented #938
  • Jan 24 2019 17:32
    mtx-z commented #927
  • Jan 24 2019 01:25
    mtx-z commented #211
  • Jan 24 2019 01:18
    mtx-z commented #211
  • Jan 24 2019 01:14
    mtx-z commented #211
  • Jan 24 2019 01:12
    mtx-z commented #211
  • Jan 22 2019 12:34
    mapopa synchronize #923
  • Jan 19 2019 01:52
    jordymeow opened #941
  • Jan 17 2019 02:33
    AdibMurshed commented #803
  • Jan 17 2019 02:33
    AdibMurshed commented #803
  • Jan 03 2019 16:15
    salsa-dev closed #940
  • Jan 03 2019 16:15
    salsa-dev commented #940
  • Jan 03 2019 04:21
    AdibMurshed commented #803
  • Dec 20 2018 08:18
    120dev commented #298
  • Dec 14 2018 11:57
    rhodrid commented #938
  • Dec 14 2018 11:44
    rhodrid commented #938
  • Nov 19 2018 21:40
    weedySeaDragon opened #940
  • Nov 14 2018 08:03
    kpumuk synchronize #939
  • Nov 14 2018 07:56
    kpumuk commented #939
Stephen Edgar
@ntwb
Does Backup work with Rasbian?
Tom de Bruijn
@tombruijn
@ntwb I don't know. Never tried it. It's a linux based OS, so it probably does. Try it out and let me know if it works
Stephen Edgar
@ntwb
Thanks @tombruijn, I did try it and ended up with the same issue as this backup/backup#726
Though it was for the latest version of Atomic 1.1.99, I couldn't install the gem directly either, with or without sudo
That was also the last version of Atomic: "This gem has been deprecated and merged into Concurrent Ruby (http://concurrent-ruby.com)."
That's as far as I got, happy to play around and file an issue or two if supporting Raspberry Pi / Raspbian would something the project would be interested in supporting
Stuart Ellis
@stuartellis
@ntwb - Atomic might need extra packages to compile on Debian. If you can post the relevant output from gem_make.out, I can take a look.
Stephen Edgar
@ntwb
/usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
That's via gem_make.out via this error when installing:
pi@rpi-home:~ $ sudo gem install atomic
Building native extensions.  This could take a while...
ERROR:  Error installing atomic:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.1.0/gems/atomic-1.1.99 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/arm-linux/2.1.0/atomic-1.1.99/gem_make.out
Stephen Edgar
@ntwb
Current versions:
pi@rpi-home:~ $ ruby -v
ruby 2.1.5p273 (2014-11-13) [arm-linux-gnueabihf]
pi@rpi-home:~ $ gem -v
2.2.2
I also just updated existing installed gems, as I'd previously not tried that, all up to date now and same issue
Stuart Ellis
@stuartellis
@ntwb - The “can’t find header” suggests that it is missing the development packages (the package name is “ruby-dev” on Debian-based systems).
If sudo apt-get install ruby-dev doesn’t fix it, you can capture a list of all of the currently installed packages with dpkg -l > packages.txt to see what you have. Feel free to post that package list on a Github gist or something, and post a link to it here.
Stephen Edgar
@ntwb
This may indeed have worked :)
Just ran sudo apt-get install ruby-dev && sudo gem install backup`` and now I'm seeingBuilding native extensions. This could take a while...`
Gotta step out for dinner but just wanted to document that :fork_and_knife:
Stephen Edgar
@ntwb
Sidenote: A lot of dependencies are being installed, is there any docs on the overhead cpu, memory usage etc of backup?
p.s. I'm doing this on a Pi 3, I'd like to also install Backup on a few Pi Zero's if this works out ok, resources are much scarcer on the Pi Zero :thinking
Stephen Edgar
@ntwb
It looks like it finished installing without error, thanks @stuartellis :+1:
Randѕon
@rands0n
hi guys, i use this gem a lot, thanks for the work. But today i needed to restore a backup onto my machine dev, and I don't know how to backup into my machine :worried:, searched on the website and on the web a lot and dind't found anything, could someone help me on this?
Stuart Ellis
@stuartellis
@rands0n - Backup just uses the standard ZIP and TAR formats, so the backups can be opened with any archive opener tools. There isn’t actually a special restore process.
Stuart Ellis
@stuartellis
@ntwb - There isn’t any documentation on resource use, but Backup mostly just calls standard command-line utilities, so the resource use will mostly be determined by the size of the sources. Note that Backup has to create local copies of the backup archive even if you have configured it to store the backups remotely, so you have to think about disk space and disk I/O. If you are using the local storage on a Pi, rather than an attached USB drive, then TBH Backup and similar approaches are probably not the best solution.
In those cases, I would suggest making it as easy as possible to restore the devices, and thinking about whether the network is reliable enough to write log data etc. directly to remote systems, rather than holding them on local storage.
Stuart Ellis
@stuartellis
(I meant “reinstall the devices”, not “restore”).
Stephen Edgar
@ntwb
Thanks Stuart :+1: , helpful and will help as I start designing my backup strategy for the 10 or so systems I want to use Backup with, appreciated
Kevin Fries
@kevin-fries
Is there any way to get backup to provide details on why it is failing my config file check? all I get is that it does not appear to be a Backp v4.x file
Tom de Bruijn
@tombruijn
@kevin-fries does your config file contain the following comment? # Backup v4.x Configuration
Kevin Fries
@kevin-fries
It didn't but it does now, that worked! Thank You
Matheus Mendes
@bigodines_twitter
Is there a way to hide a mongodb instance during backup and unhide it afterwords?
Matheus Mendes
@bigodines_twitter
i guess a better question would be: how do I native mongo commands before and after the backup?
Stuart Ellis
@stuartellis
@bigodines_twitter - You might find before/after hooks useful: http://backup.github.io/backup/v4/before-after-hooks/
Randѕon
@rands0n
@stuartellis thanks =)
Luca Zecca
@lzecca78
Hi guys, i am introducing backup as mysql backup daily method for single db. I have setup bzip compressor and local srora
Local storage, everything is awsome, but
I would like to have for the latsst
I would like to have for the latest backup a symlink to latest
So in automated way i can easily access to it
And i would like to avoid tar step because the sql dump is already in bzip2 format and tar it is useless
Is there any way to do those things?
Stuart Ellis
@stuartellis
@lzecca78 - For the symlink, you could try using an “after” hook (see link above). The output is not adjustable - the tar is harmless, but I understand that it feels a bit pointless in this case.
Luca Zecca
@lzecca78
@stuartellis i tried yesterday but is not like Capistrano, i cannot put logic between steps
Stuart Ellis
@stuartellis
I’m afraid that I don’t understand.
Perhaps post a model on a Github gist or similar
Luca Zecca
@lzecca78
do you know Capistrano before and after hooks @stuartellis ?
you can trigger behaviors reffering to other task names
this give you a lot of power and granularity
Stuart Ellis
@stuartellis
Sure, but Capistrano is a more generic task runner
Luca Zecca
@lzecca78
yes yes, what i was trying to say is that the after/before hook of backup is something that let you do something like the rspec before/after
you cannot say before :archive do <code> end