PostgreSQL backup e restore

–Dump dbpg_dump databasefoo -Fc > dumpfile.dmp –Dump db compressing dumpfilepg_dump databasefoo | gzip > dumpfile.dmp.gz –Dump db using 2 jobs in parallelpg_dump databasefoo -h host -U user -Fd -f dumpdir -j 2 –Restore dbpsql databasefoo < dumpfile.dmp –Restore dbpg_restore -d databasefoo -Fc dumpfile.dmp –Restore db compressed dumpfilegunzip -c dumpfile.dmp.gz | psql databasefoo –Restore db using …
Continua a leggere PostgreSQL backup e restore

Analisi struttura directory

[root@localhost ~]# tree -dugp /etc/systemd/ /etc/systemd/ ├── [drwxr-xr-x root     root    ]  system │   ├── [drwxr-xr-x root     root    ]  basic.target.wants │   ├── [drwxr-xr-x root     root    ]  default.target.wants │   ├── [drwxr-xr-x root     root    ]  dev-virtio\\x2dports-org.qemu.guest_agent.0.device.wants │   ├── [drwxr-xr-x root     root    ]  getty.target.wants …
Continua a leggere Analisi struttura directory