Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(534)

Issue 34710044: plugins/juju-backup: tweaks

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by rog
Modified:
11 years, 10 months ago
Reviewers:
mp+197224, fwereade, dimitern
Visibility:
Public.

Description

plugins/juju-backup: tweaks This is to address comments I made too late on the original CL. I've tried to reduce moving parts where possible and reduce vulnerability to bash quoting issues. I changed the indentation from two spaces to tabs, as I find two spaces hard to see and we use tabs elsewhere in the code base. I realise that this may be a religious issue - 4 spaces would also be a viable option if tabs are not considered OK. I've left the output pretty much unchanged. Here's a sample: % juju-backup Connecting to machine 0 ************************************************************** Preparing to perform backup ************************************************************** Older juju backup exists, moving to juju-backup-previous Removing existing backup archive.....SUCCESS Archiving backup.....SUCCESS Making backup directory.....SUCCESS ************************************************************** Backing up mongo database ************************************************************** Stopping mongo.....SUCCESS Backing up mongo.....SUCCESS Backing up environ config.....SUCCESS Starting mongo.....SUCCESS ************************************************************** Copying Juju configuration ************************************************************** Copying /etc/init/juju-db.conf.....SUCCESS Copying /etc/init/jujud-machine-0.conf.....SUCCESS Copying /var/lib/juju/agents/machine-0.....SUCCESS Copying /var/lib/juju/tools.....SUCCESS Copying /var/lib/juju/server.pem.....SUCCESS Copying /home/ubuntu/.ssh/authorized_keys.....SUCCESS Copying /etc/rsyslog.d/25-juju.conf.....SUCCESS Copying /var/log/juju/all-machines.log.....SUCCESS Copying /var/log/juju/machine-0.log.....SUCCESS ************************************************************** Creating tarball ************************************************************** Performing tar.....SUCCESS Changing ownership of backup files to ubuntu.....SUCCESS Juju backup finished. Connection to ec2-23-20-40-203.compute-1.amazonaws.com closed. Copying tarball to /home/rog/src/go/src/launchpad.net/juju-core/cmd/plugins/juju-backup/juju-backup-20131129-1540.tar.gz ... juju-backup.tar.gz 100% 4650KB 357.7KB/s 00:13 % https://code.launchpad.net/~rogpeppe/juju-core/471-juju-backup-tweaks/+merge/197224 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : plugins/juju-backup: tweaks #

Total comments: 6

Patch Set 3 : plugins/juju-backup: tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -102 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/plugins/juju-backup/juju-backup View 1 2 1 chunk +102 lines, -102 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
11 years, 10 months ago (2013-11-29 15:54:10 UTC) #1
fwereade
LGTM assuming it's been tested live.
11 years, 10 months ago (2013-12-02 09:32:51 UTC) #2
dimitern
LGTM https://codereview.appspot.com/34710044/diff/20001/cmd/plugins/juju-backup/juju-backup File cmd/plugins/juju-backup/juju-backup (right): https://codereview.appspot.com/34710044/diff/20001/cmd/plugins/juju-backup/juju-backup#newcode38 cmd/plugins/juju-backup/juju-backup:38: cd juju-backup I think we need to do ...
11 years, 10 months ago (2013-12-02 09:59:12 UTC) #3
rog
https://codereview.appspot.com/34710044/diff/20001/cmd/plugins/juju-backup/juju-backup File cmd/plugins/juju-backup/juju-backup (right): https://codereview.appspot.com/34710044/diff/20001/cmd/plugins/juju-backup/juju-backup#newcode38 cmd/plugins/juju-backup/juju-backup:38: cd juju-backup On 2013/12/02 09:59:12, dimitern wrote: > I ...
11 years, 10 months ago (2013-12-02 11:39:11 UTC) #4
dimitern
https://codereview.appspot.com/34710044/diff/20001/cmd/plugins/juju-backup/juju-backup File cmd/plugins/juju-backup/juju-backup (right): https://codereview.appspot.com/34710044/diff/20001/cmd/plugins/juju-backup/juju-backup#newcode38 cmd/plugins/juju-backup/juju-backup:38: cd juju-backup On 2013/12/02 11:39:11, rog wrote: > On ...
11 years, 10 months ago (2013-12-02 12:25:08 UTC) #5
rog
11 years, 10 months ago (2013-12-03 18:21:35 UTC) #6
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b