Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
SMalli
Contributor III
Contributor III

How do I backup QVD files 4 times a day to keep multiple versions?

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

            

Labels (1)
2 Solutions

Accepted Solutions
Eugene_Sleator
Support
Support

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 

View solution in original post

SMalli
Contributor III
Contributor III
Author

@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

View solution in original post

5 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

What tool or scripting language are you wanting to use to create these backups?

-Rob

SMalli
Contributor III
Contributor III
Author

Hi Rob,

 

I'm planning to use batch file

rohitk1609
Master
Master

Hi,

You should use Windows batch file commands to create folder and move qvds. you would find lots of suggestions on google.

Eugene_Sleator
Support
Support

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 

SMalli
Contributor III
Contributor III
Author

@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