Code Monkey home page Code Monkey logo

stouts.backup's People

Contributors

gzoritchak avatar jezdez avatar klaemo avatar klen avatar merqlove avatar nickhammond avatar paulmaunders avatar reminec avatar viatoriche 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  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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stouts.backup's Issues

Failing restores exit with 0

If the restore fails due to an error,
for example the backup directory being empty because no backup has been run yet,
the customized version of duply returns 0.

This seems to be because of the run_script $CONFDIR/restore; line, which always runs the script,
even if the restore command above it fails.

question: using two backup profiles on same server

Hi,

I found your playbook very useful.

However, I have a problem using two different playbooks with different profiles on the same server. The last used playbook delete the first backup configuration.

Is there a way of using two independents playbook on the same server?

Thanks,

Using swift : Container creation failed: ClientException No tenant specified

When I try to use params to initialize the environment variables for SWIFT:

- name: myprofile
  max_full_backups: 5
  full_max_age: 1W
  schedule: 0 6 * * *
  source: /home/project/backup
  target: swift://myprofile
  params:
    - "SWIFT_USERNAME=--username--"
    - "SWIFT_PASSWORD=--password--"
    - "SWIFT_AUTHURL=https://auth.cloud.ovh.net/v2.0"
    - "SWIFT_TENANTNAME=-tenantname-"
    - "SWIFT_AUTHVERSION=2"

I have the exception

Container creation failed: ClientException No tenant specified

Question: Can a single backup go to multiple targets?

I have a need right now to backup to s3 and this looks to work fine, but I also want to start backing up to my server at home which would be via ssh keys, can this tool backup to multiple targets? What would that playbook config look like if so?

run an additional task before and after backup?

I need to put my app into maintenance mode before the backup happens, and then pull it out of maintenance mode afterwards.

I'd also like to backup both the db and directory, one after the other, in the same cron job, rather than at separate times.

Are these things possible with Stouts.backup?

cron.j2 references /usr/local/bin

Hi,
#19 notes that /usr/local/bin might not exist, and 941ed6e notes this as fixed, but https://github.com/Stouts/Stouts.backup/blob/develop/templates/cron.j2#L7 still references the /usr/local/bin path which is causing my jobs to fail.

I've corrected this manually in my local copy with success, and I'd be happy to submit a PR, but given that these templates are generated with Ansible I don't want to break something by manually editing them.

Let me know if I can help by submitting a PR!

Passing Postgres database user password as an argument?

Hello,

I noticed that you support the following for passing parameters to the /etc/duply/postgres/pre backup bash script

# Posgresql
backup_postgres_user: postgres
backup_postgres_host: ""

Do you support passing a password argument for the database into this script as well?
I would prefer to not have to set a trust within a pg_hba.conf file for whichever user is being used for backup access.

Is this something that needs to be set as an environment variable, or passed within the backup_profile[:source] ?

/usr/local/bin may not exists

Got this error on fresh ubuntu 14.04 installation

TASK [Stouts.backup : backup-configure | Install duply] ************************
fatal: [95.213.235.x]: FAILED! => {"changed": true, "failed": true, "msg": "Destination directory /usr/local/bin does not exist"}
        to retry, use: --limit @dbservers.retry

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.