Tuesday, August 16, 2016

Tar create/extract inside a specific directory

Create
tar -cf output.tar -C /path/to/directory .
The dot at the end is important

Extract
tar -xf input.tar -C /path/to/directory

No comments:

[PostgreSQL] How to create read-only standby replica (follower)

This link  and this link explain it really well and concise