bash

Aegir bulk backup script updated

I once wrote an Aegir bulk backup script that was pretty rudimentary, (although popular for some reason): it interrogated the Apache vhosts of your Aegir system and generated a 'provision-backup' task against each site that it found.

The result was a tarball of the site files and database dump in your /var/aegir/backups directory.

It worked pretty well for its time, other than the issue that plagued us in those days: tasks like provision-backup, which were solely 'backend only', were unable to be fetched from the frontend.

Duplicity and the Rackspace CloudFiles API for backups

I've been playing with RackSpace Cloud lately and so far I've been quite impressed. The price is quite competitive, the network seems quite stable and performance is no issue. Plus: persistent storage in the cloud, out of the box! Awesome.

The support has been good (I had a routing issue on privatenet interfaces between two servers, which I was certain was either at the network or hypervisor layer and not my firewall. The engineers and I ran through the usual tests til it was assumed a hypervisor routing issue with this particular guest, which a reboot of the guest fixed).

Bash shortcuts

Ctrl-a -> go to the start of command line
Ctrl-e -> go to the end of command line
Ctrl-p -> previous command in history
Ctrl-n -> next command in history
Ctrl-f -> next character in command line
Ctrl-b -> previous character in command line
Ctrl-r -> reverse search in history file
Ctrl-d -> delete current character
Ctrl-k -> delete from the prompt to the end of command line
Ctrl-_ -> undo (yes, but limited)
Meta-< -> go to beginning of history file
Meta-> -> go to end of history file
Meta-f -> go to next word in command line
Meta-b -> go to previous word in command line

Pages

Subscribe to RSS - bash