Skip to content

Instantly share code, notes, and snippets.

@psykidellic
Created October 29, 2013 18:13
Show Gist options
  • Select an option

  • Save psykidellic/7219777 to your computer and use it in GitHub Desktop.

Select an option

Save psykidellic/7219777 to your computer and use it in GitHub Desktop.
drwxr-xr-x 13 root root 4096 Oct 29 06:52 .
drwxr-xr-x 16 root root 4096 Oct 28 01:25 ..
-rw-r--r-- 1 root root 38039 Oct 28 01:26 alternatives.log
drwxr-xr-x 2 root root 4096 Oct 28 01:19 apt
-rw-r----- 1 syslog adm 95452 Oct 29 18:11 auth.log
-rw-rw---- 1 root utmp 0 Dec 18 2012 btmp
-rw-r--r-- 1 syslog adm 61998 Oct 28 01:08 cloud-init.log
drwxr-xr-x 2 root root 4096 Oct 28 01:16 ConsoleKit
drwxr-xr-x 2 root root 4096 Nov 13 2012 dist-upgrade
-rw-r--r-- 1 root adm 14994 Oct 28 01:08 dmesg
-rw-r--r-- 1 root root 0 Oct 28 01:08 dmesg.0
-rw-r--r-- 1 root root 233889 Oct 28 01:29 dpkg.log
drwxr-xr-x 2 elasticsearch elasticsearch 4096 Oct 28 01:30 elasticsearch
-rw-r--r-- 1 root root 1154 Oct 28 01:26 fontconfig.log
drwxr-xr-x 2 root root 4096 Dec 18 2012 fsck
-rw-r----- 1 syslog adm 24053 Oct 28 01:23 kern.log
drwxr-xr-x 2 landscape root 4096 Oct 28 01:08 landscape
-rw-rw-r-- 1 root utmp 292876 Oct 29 18:11 lastlog
-rw-r----- 1 syslog adm 0 Oct 28 01:08 mail.err
-rw-r----- 1 syslog adm 0 Oct 28 01:08 mail.log
-rw-r----- 1 root adm 1057 Oct 28 01:30 monit.log
drwxr-xr-x 2 root root 4096 Oct 28 01:08 news
drwxr-xr-x 2 www-data root 4096 Oct 29 06:52 nginx
drwxrwxr-t 2 root postgres 4096 Oct 28 01:23 postgresql
-rw-r----- 1 syslog adm 2138 Oct 29 17:58 syslog
-rw-r----- 1 syslog adm 32731 Oct 29 06:25 syslog.1
-rw-r--r-- 1 root root 102328 Oct 28 01:08 udev
-rw-r----- 1 syslog adm 0 Oct 28 01:08 ufw.log
drwxr-xr-x 2 root root 4096 Oct 9 2012 unattended-upgrades
drwxr-xr-x 2 root root 4096 Oct 29 06:52 upstart
-rw-rw-r-- 1 root utmp 79488 Oct 29 18:11 wtmp
@psykidellic

Copy link
Copy Markdown
Author

beamtous_production@ip-10-184-31-254:/var/log$ ls -la /etc/cron.d
total 20
drwxr-xr-x 2 root root 4096 Oct 28 01:29 .
drwxr-xr-x 105 root root 4096 Oct 28 07:09 ..
-rw-r--r-- 1 root root 371 Oct 28 01:29 cloudwatch_schedule_metrics
-rw-r--r-- 1 root root 205 Oct 28 01:25 pgsql_backup_beamtous_production
-rw-r--r-- 1 root root 102 Jun 14 2012 .placeholder

@psykidellic

Copy link
Copy Markdown
Author

beamtous_production@ip-10-184-31-254:/var/log$ more /etc/cron.d/pgsql_backup_beamtous_production
Crontab for pgsql_backup_beamtous_production managed by Chef. Changes will be overwritten.

0 0 * * * beamtous_production /var/www/beamtous_production/current/script/backup_db.sh beamtous production

@psykidellic

Copy link
Copy Markdown
Author

beamtous_production@ip-10-184-31-254:/var/log$ /var/www/beamtous_production/current/script/backup_db.sh beamtous production
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
/tmp/beamtous-production-db-2013-10-29.sql.gz -> s3://beamtous-production-backup/beamtous-production-db-2013-10-29.sql.gz [1 of 1]
1765947 of 1765947 100% in 0s 11.36 MB/s done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment