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
Richard Matthews
@Reinkaos
Hey guys, I am attempting to upgrade backup from 3.4.0 to 4.4 and I am getting an issue where it doesn't seem to be compatible with Rails 4.2.8. The error that I am getting when attempting to bundle is to do with the thread safe dependancy. Has anyone come across this before? Thanks
It seems to be any 4.2.x Rails version is not compatible
Tom de Bruijn
@tombruijn
Hi @Reinkaos , backup is not compatible to be run in a Rails project.
It's better if you set up a separate project for it
Mike Delaney
@madelaney
When using postgresql dumps, can you have the sql dump writing to a specific directory? i.e. /srv/backups/#{time}/dump.sql
Richard Matthews
@Reinkaos
Thanks @tombruijn, that makes sense
Stuart Ellis
@stuartellis
@madelaney - You could probably use the "additional_options” to pass a - -file argument to pg_dump.
Attila Strba
@attilastrba
hi @stuartellis I am trying to implement a feature for incremental backup with rsync. I have created the tests with rspec but I am unable to get the Vagrant up and running as the base box from this address http://dl.dropbox.com/u/95700067/backup-testbox.box is missing. Could you point me to the right direction how could I test my implementation? Thank you
Attila Strba
@attilastrba
ah ok I see you are moving to docker backup/backup#832 still if you would give me a point how to execute the tests would be glad...
Stuart Ellis
@stuartellis
Hello @attilastrba! Yes, we don’t have access to the Vagrant box anymore, so I’m porting the tests from Vagrant to Docker. The rsync tests have already been ported. You can just run the Rake tasks and they will pull and build images etc.
rake docker:test:all # Run all tests with Docker Compose
rake docker:test:integration # Run integration tests with Docker Compose
rake docker:test:spec # Run RSpec tests with Docker Compose
Please ping me or comment on the GH issue if you have any problems: What I’ve pushed should work without errors
Attila Strba
@attilastrba
thank you @stuartellis I see this commit is not yet merged to the master. does it mean I should fork your repo and base my feature implementation there? sorry for the dummy question it is my first try to create a pullrequest on github...
Mike Delaney
@madelaney
Thanks @stuartellis , I'll give that a try.
Stuart Ellis
@stuartellis
@attilastrba - Yes, that’s what I meant. I’m sorry that this isn’t straight-forward. Please feel free to use the master branch to write your code, and then submit a PR: we can help you with any issues.
netmoleCBA
@netmoleCBA
good day there
i am dealing with backup/backup#836 and i cant discover how to fix conflict with thor
Stuart Ellis
@stuartellis
@netmoleCBA - Hello! I would recommend each Ruby or Rails application in it’s own environment, but there are several different ways to do this. If you can say a bit about the system and what Ruby or Rails applications are on it, I can try to give you more specific suggestions.
Onno
@onknows
hi all
Is is possible to send notifications to Slack when backup gem is behind a proxy server?
Tom de Bruijn
@tombruijn
I don't think so. We've not added any options to allow users to set a proxy servers. We should do that..
Tom de Bruijn
@tombruijn
Want to help out with Backup development? I've started a new channel for it, see backup/backup-dev . (Making this an issue/support room only)
flprben
@feliperaul
Also couldn't solve thor issues: can't #836 be solved in any other way?
Stuart Ellis
@stuartellis
@feliperaul I’m afraid that (IMO) each Ruby application ought to be run in a separate environment. Even if we worked around the conflict with Thor now, we might have other issues in future.
Tom de Bruijn
@tombruijn
agreed :point_up:
Denis
@Arlantir
Hi, when version 5 is being crashed and can I install it with ruby 2.4?
Stuart Ellis
@stuartellis
Hello @Arlantir version 4.2 does not work with 2.4 (2.3 is OK). Version 5 will work with Ruby 2.4, but has not been released yet.
Denis
@Arlantir
@stuartellis Thank you
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.