alex13lopez / gcloud-backup Goto Github PK
View Code? Open in Web Editor NEWA powershell script to perform and manage your Google Cloud (gcloud) Backups.
A powershell script to perform and manage your Google Cloud (gcloud) Backups.
Hello there,
I have been detecting slow uploads in different clients with the same S.O , aka Windows 10, after quite a long research I've detected that the only way to fix it (apart from waiting for Google to fix it) is installing Cygwin and running the gsutil commands through Cygwin.
I say Cygwin and not WSL because Cygwin has the ability to connect to Windows Shares and that might be necessary for some scenarios (at the very least in mine).
As an example, a client of mine has a bandwidth of 500 Mb and the uploads are going at 4.5 MiB instead of 50 like it should, once I installed and tested it with Gsutil cp , the speed increased to the expected.
This might be useful for professional environments with Nagios or any other System Monitor, so we can read those logs directly and monitor gcloud-backup more effectively and precisely.
This function is hard to digest, we should do it simpler like this:
We get the today date and we substract it from the fileDate (in days) if its bigger than the Days to keep backup it should be deleted (also if its 0 it should be ignored)
Known bug that happens if the folder you're uploading has numbers, those numbers will interfere and be recognised as a date when they're not.
As I see it, there's 2 ways of solving this:
The 1st option would be the "pro one" but I'm concerned about performance since you have to get each file's date and 2nd one is easier and does not affect performance.
If the folder or filename have spaces the upload fails. Fix soon
It'd be nice to be able to indicate the path of the conf file so we can have several conf files for different backups or for different purposes.
Right now the date of the files is fetched from the filename, as how is the code atm, it would work for Veeam 10, 9 and possibly 8, but there might be changes with the naming convention from the veeam team, not only that, but this could be open for other backup solutions.
For that I think the best idea would be to have a dictionary with the key being the version and program and the value the filename format.
Allow users to define a Network share and force powershell to mount it in case the user hasn't started a session, this is mainly for Scheduled tasks that will fail if not done properly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.