Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
tutorial:adm:backups [2020/03/20 09:18] fiserp [Repository backups] |
tutorial:adm:backups [2020/03/20 09:23] fiserp [Application backups] |
||
---|---|---|---|
Line 53: | Line 53: | ||
#do the dump | #do the dump | ||
# say we run the actual backup and create dump1.dmp, dump2.dmp and dump3.dmp here | # say we run the actual backup and create dump1.dmp, dump2.dmp and dump3.dmp here | ||
+ | # STRONGLY ADVISED TO GZIP YOUR BACKUPS, SCRIPT DOES NOT DO THAT FOR YOU !!! | ||
+ | |||
#pack the dump | #pack the dump | ||
#tar usage "tar [parameters] archive_name file1 [file2 file3 ...]" | #tar usage "tar [parameters] archive_name file1 [file2 file3 ...]" | ||
- | tar --remove-files -czf current_backup.tgz dump1.dmp dump2.dmp dump3.dmp | + | tar --remove-files -cf current_backup.tar PUT-YOUR-FILES-HERE |
+ | chmod 600 current_backup.tar | ||
</ | </ | ||
And change them to (expected name of the czechidm database is '' | And change them to (expected name of the czechidm database is '' | ||
<code bash> | <code bash> | ||
#do the dump | #do the dump | ||
- | pg_dump --create --dbname=czechidm > czechidm.sql | + | pg_dump --create |
#pack the dump | #pack the dump | ||
#tar usage "tar [parameters] archive_name file1 [file2 file3 ...]" | #tar usage "tar [parameters] archive_name file1 [file2 file3 ...]" | ||
- | tar --remove-files -czf current_backup.tgz czechidm.sql | + | tar --remove-files -czf current_backup.tgz czechidm.sql.gz |
</ | </ | ||
Line 135: | Line 138: | ||
In some cases, CzechIdM is not deployed with frontend and backend bundled together in the '' | In some cases, CzechIdM is not deployed with frontend and backend bundled together in the '' | ||
+ | |||
+ | ===== Restoring IdM application ===== | ||
+ | This is a basic DR howto for restoring the identity manager in case you lose it. It does not deal with other disaster scenarios (i.e. IdM bulk-propagating bad data to other systems). |