Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.

Commit 32250bd

Browse files
committed
Date format typo: %M is minute but we want month, %m.
1 parent babd35f commit 32250bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/backups.pod

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RT. :)
3333

3434
( mysqldump rt4 --tables sessions --no-data; \
3535
mysqldump rt4 --ignore-table rt4.sessions --single-transaction ) \
36-
| gzip > rt-`date +%Y%M%d`.sql.gz
36+
| gzip > rt-`date +%Y%m%d`.sql.gz
3737

3838
If you're using a MySQL version older than 4.1.2 (only supported on RT 3.8.x
3939
and older), you should be also pass the C<--default-character-set=binary>
@@ -54,7 +54,7 @@ but lets you take backups without putting load on your production server.
5454

5555
( pg_dump rt4 --table=sessions --schema-only; \
5656
pg_dump rt4 --exclude-table=sessions ) \
57-
| gzip > rt-`date +%Y%M%d`.sql.gz
57+
| gzip > rt-`date +%Y%m%d`.sql.gz
5858

5959
=head2 FILESYSTEM
6060

@@ -102,7 +102,7 @@ recreate those.
102102

103103
Simply saving a tarball should be sufficient, with something like:
104104

105-
tar czvpf rt-backup-`date +%Y%M%d`.tar.gz /opt/rt4 /etc/aliases /etc/httpd ...
105+
tar czvpf rt-backup-`date +%Y%m%d`.tar.gz /opt/rt4 /etc/aliases /etc/httpd ...
106106

107107
Be sure to include all the directories and files you enumerated above!
108108

0 commit comments

Comments
 (0)