Additional relevant information (e.g., PHP version, database, etc.):
Site is running Wordpress 6.7.1
Additional Information
I am in the middle of migrating this server to a new (freshly installed server). I had 6 sites to migrate. 1-4 done, no issues. This is #5. The Rsync portion of the migration was taking forever, pointed me to this being an issue. The migration migrated this 79G of data from the old server to new. I’ve stopped the migration and hope to clean this up before attempting the migration again.
To be clear: not trying to get this server to a “perfect” state, I just want to clean up this directory so that I can migrate the site to my new server.
An accumulation of junk data - including logs or separate backups at each snapshot - will contribute to this behavior. To restrict which files are backed up, create a file named .gitignore within the application root for the Web App. Each line is a subdirectory within this path that will be excluded from git during snapshot.
Disabling, then re-enabling snapshots will discard the current git repository on the Web App.
Any chance you can point me towards how to do so from the command line? My web console is toast and this is the last thing I need to do before moving to my new (freshly installed) server instance. I’m digging through the docs now to try to figure it out…
If WordPress is not installed within a subdirectory of a domain, then replace “SUBPATH” with ''.
Note: to regenerate if removed using rm -rf .git/ the “git” feature still needs to be reconfigured by first setting git:0, then git:1 due to an idempotency check.