Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Currently working on a requirement, where I need to create a folder with folder name as todays date. Within the folder create sub folders with date and timestamp. For example the 1st backup of qvds needs to happen at 2 am, then the folder name would be todaysdate_02hr. and another backup that happens at 6 pm will create a folder wit the name 062622_06..so on
I need to back up multiple versions of the qvds for that day in this format:
06272022->
06272022_02
06272022_08
so on
Hi @SMalli if you plan on using batch script to back up your files this should help
How to backup using batch files
You can also use a different approach and have the QVD's back up upon reload with the Execute command in the Script Editor see below as examples
windows-command-move-copy-to-backup-qvd
Want-to-backup-my-QVD-files-at-Specified-Path-before-reloading
@Echo off
for /f "tokens=2,3,4 delims=/ " %%i in ('date /t') do set DATE1=%%k%%i%%j
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
xcopy "folderpath\w*.qvd" "destinationfolderpath\" /Y
What tool or scripting language are you wanting to use to create these backups?
-Rob
Hi Rob,
I'm planning to use batch file
Hi,
You should use Windows batch file commands to create folder and move qvds. you would find lots of suggestions on google.
Hi @SMalli if you plan on using batch script to back up your files this should help
How to backup using batch files
You can also use a different approach and have the QVD's back up upon reload with the Execute command in the Script Editor see below as examples
windows-command-move-copy-to-backup-qvd
Want-to-backup-my-QVD-files-at-Specified-Path-before-reloading
@Echo off
for /f "tokens=2,3,4 delims=/ " %%i in ('date /t') do set DATE1=%%k%%i%%j
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
xcopy "folderpath\w*.qvd" "destinationfolderpath\" /Y