Hands-on task
Move the keys without losing permissions
The deploy keys from /root/keys have to be moved via an archive. Pack the directory into a compressed archive /root/keys.tar.gz, then extract it into /root/migrated so that the permissions are preserved: the keys directory is 700, id_deploy is 600, id_deploy.pub is 644.
- tar
- tar -z
- preserving permissions
- stat
- moving secrets