I am using ubuntu 12.04 TLS in which i have a git repository in a specific directory, what i am trying is to take the scheduled backup of the repository and place it in specific directory that can be mailed.
In the process i get to know to find all the git repository in specific directory by googling i found this below command
find /home/mysys/D/ -name .git -type d -prune
but it contain the path as
/home/mysys/D/testing/.git
which list all the git files associated in the directory and it is working, but what i need to execute git bundle create directoryname.bundle --all to make it more automated in which i tried the following
find /home/mysys/D/ -name .git -type d -prune -exec git bundle create test.bundle --all {} \;
The above bash script returns
fatal: Invalid gitfile format: .git
How to do this to make it work robust.
Thanks in Advance.