Tar archive To/From Github
This repo implements two commands :
- ttg : Tar archive To Github
- tfg : Tar archive From Github
Basically a Github repo doesn't have owners and permissions. If we work on Github, and need this (for example when one manages the root file system of an embedded system), we need a way to extract/re-apply the owners and permissions of all the files. This is exactly what TTFG does.
(maxiconda) me@mybox:~$ ttg -i fubar.tar -o /home/me/some/dir
Given a tar archive in the -i
flag (can also be zipped, gzipped or xz) a YAML file with the same name as the tar archive (minus .tar.*
) and the extension .ttfg
in the directory specified by the -o
flag. This file contains all files in the archive and their owners/permissions.
(maxiconda) me@mybox:~$ tfg -i /some/github/repo -o fubar.tar.xz
Given the root directory of a Github repo (MUST contain a .git
sub-directory and a .xxx.ttfg
file) tfg
will recuperate the owners and permissions form the .xxx.ttfg
file, and apply them to the directory with the directory with name xxx
. The result is a tar file with the name xxx.tar
if no -o
flag is given, or to the file given if the -o
flag is given.