branch | stable |
changeset 4784 | eed95a456b88 |
parent 4429 | 0cd207567f37 |
child 5002 | 0ce27e435b3a |
--- a/doc/book/en/admin/additional-tips.rst Tue Mar 02 21:48:36 2010 +0100 +++ b/doc/book/en/admin/additional-tips.rst Fri Feb 26 17:00:42 2010 +0100 @@ -28,7 +28,7 @@ Simply use the pg_dump in a cron :: - pg_dump -Fc --username=cubicweb --no-owner --file=/var/lib/cubicweb/backup/<instance>-$(date '+%Y-%m-%d_%H:%M:%S').dump + su -c "pg_dump -Fc --username=cubicweb --no-owner" postgres > <your-instance>-$(date '+%Y-%m-%d_%H:%M:%S').dump **CubicWeb way**