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
Attila Strba
@attilastrba
With Rsync this works (my pwd has to be in the /mnt/src"
rsync -v -a  --relative  "Games/Steam/steamapps/common/Kerbal Space Program/saves" /mnt/backup-data-2tb/
Attila Strba
@attilastrba
Oh the logging I solved it was due to STDOUT.sync=true missing in my ruby
Attila Strba
@attilastrba

Another way would be using the . notation of relative:

rsync -v -a  --relative  "/mnt/src/./Games/Steam/steamapps/common/Kerbal Space Program/saves" /mnt/backup-data-2tb/

It works from bash but does not work from the backup gem... any ideas?

Attila Strba
@attilastrba

Ok so checked the sources it seems this is due to the

  def paths_to_push
          directories.map { |dir| "'#{File.expand_path(dir)}'" }.join(" ")
        end

expand_path... any other ideas how to realize what I want to do?

zenzei
@zenzei
Thanks @stuartellis! No problem, i will try to look and see if it's good enough to be shared :)
Mohammed Naser
@mnaser
Is there any docs about extending the Backup gem?
I’m trying to do backup for our InfluxDB infrastructure. I have something like this, but it’s failing at "archive.add @influxdb_dir”.
So maybe I should implement this as a database backup as part of a PR, but I’m unsure where to start.. is the reference point other plugins pretty much?
Stuart Ellis
@stuartellis
@attilastrba - The first thing that catches my eye is your directory name has spaces, so it might be that you need to escape those spaces. (Sorry for not replying before).
@mnaser - Yes, I think that the best thing to do is take a look at the source of existing plugins. Feel free to submit a PR if you would like someone to look at your code. Or if you have a question, feel free to post here.
Akshay Rawat
@akshayrawat
How do I disable cycling of DB backups on a FTP server? (v3.4.0)
Stuart Ellis
@stuartellis
@akshayrawat - I’m sorry for the late reply. We don’t support version 3, so I would definitely recommend upgrading. Looking at the code for version 4, there are various tricks that you could use, like setting a keep time far in the future, but I don’t think that you can or should try to have infinite copies: obviously you would eventually run out of disk space or end up with so many copies that it would be hard to manage.
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