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

View File

@ -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.

View File

@ -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}

View File

@ -0,0 +1 @@
5

View File

@ -0,0 +1 @@
6

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1 @@
2

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
4