ABotelho23 / s017Backup

This repository has been archived on GitHub and moved to GitLab. Please see the project on GitLab.com: https://gitlab.com/ABotelho23/s017Backup
GNU General Public License v3.0
3 stars 0 forks source link

Create unique "StaplesBackup" folder name #5

Open ABotelho23 opened 6 years ago

ABotelho23 commented 6 years ago

Looking into appending the current date and time in a format that's compatible with folder naming coonventions.

This way if customer returns again, we wouldn't overwrite our existing backup if one exists

ABotelho23 commented 6 years ago

https://community.tableau.com/thread/172730

Possible solution?

Krrak commented 6 years ago

The only issue I can easily see with this is possible name too long errors being created by this - but it's definitely a workable idea.

ABotelho23 commented 6 years ago

Robocopy supports path names over 32,000 characters long, unlike File Explorer copy and pasting which go up to about 256. So I think that should be fine.