trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
240 stars 58 forks source link

data folder not syncing child items #133

Closed goldjg closed 5 years ago

goldjg commented 5 years ago

I have grav skeleton site running on an Azure Web App on Windows, and have installed both Admin and Git-Sync.

Git sync initial sync was fine and if I add a new page via the admin plugin, it is automatically synced with my repo in bitbucket (yay!).

However, I also ran from the Azure Kudu console the command php bin\grav backup from D:\home\site\wwwroot and whilst the backup worked and created a backup zip file in the backup dir, when I then made a new backup directory under data\ and if I copy the backup file there, gitsync ignores it and the backup directory.

I also tried placing the new directory and backup file under user\data to no avail.

Is this by design or a bug?

[2019-02-20 14:57:57] grav.NOTICE: gitsync[output]: On branch master nothing to commit, working tree clean [] []
[2019-02-20 14:57:59] grav.NOTICE: gitsync[command]: "D:\Program Files\Git\bin\git.exe" -C "D:/home/site/wwwroot/user/" remote get-url "origin" 2>&1 [] []
[2019-02-20 14:58:00] grav.NOTICE: gitsync[output]: https://bitbucket.org/goldjg/grav-demo.git [] []
[2019-02-20 14:58:01] grav.NOTICE: gitsync[command]: "D:\Program Files\Git\bin\git.exe" -C "D:/home/site/wwwroot/user/" remote set-url origin "https://goldjg:{password}@bitbucket.org/goldjg/grav-demo.git" 2>&1 [] []
[2019-02-20 14:58:01] grav.NOTICE: gitsync[output]:  [] []
ls

    Directory: D:\home\site\wwwroot\user\data\backup

Mode                LastWriteTime         Length Name                          
----                -------------         ------ ----                          

-a----        2/20/2019   2:39 PM       25524747 grav-20190220143650.zip       
PS D:\home\site\wwwroot\user\data\backup> ls
ls

    Directory: D:\home\site\wwwroot\user\data\backup

Mode                LastWriteTime         Length Name                          
----                -------------         ------ ----                          

-a----        2/20/2019   2:39 PM       25524747 grav-20190220143650.zip