Handle relative path; Enhancing README

This commit is contained in:
Patrick MARIE 2024-10-08 20:13:43 +02:00
parent c4d25bcea8
commit c865dcaf5a
Signed by: mycroft
GPG Key ID: BB519E5CD8E7BFA7
8 changed files with 12 additions and 0 deletions
README.md
scripts
tests/tests_cases/99
13fe0cca86cc6b12592e794c22e26bf4f3c52f9e
a6de246c8dea66af000d18dec00dc56825740aa6

@ -56,3 +56,4 @@ Check `.github/workflows/tests.yaml` for the test workflow.
- Keep track of latest commit backuped to allow iterative backups. As for now, the script checks all commits (which is not really efficient); However, if latest commit backup is tracked and this commit to be overwritten by a force push, it will be eventually required to re-do the whole backup.
- Keep commit messages, metadata (commiter, date), so it is possible to rebuild the git repository DAG.
- Move the script/workflow out of the backup repository to allow a re-usable workflow! Also, it is quite boring having the script in the same repository as it will create conflicts during push, as pushing will start backuping and will require pulling again the code.
- The script does not track deletion, modes, links, submodules. If we want to rebuild a repository, a lot of stuff will have to be done.

@ -19,6 +19,11 @@ do
;;
d)
DATA_DIR=${OPTARG}
if [[ "${DATA_DIR}" != /* ]]
then
# I want an absolute directory
DATA_DIR=$(pwd)/${DATA_DIR}
fi
;;
n)
MAX_NUM=${OPTARG}