1- How ? On raspberry, it's : "/mnt/sdb1" ?
I use this code:
PROGRAMMEMORISATION_PERSISTANTSVARfbDelete:FILE.Delete;(* bloc pour effacer le contenu dufichier *)sFileName:STRING:='data.ret';pApp:POINTERTOAPPLICATION;Result:RTS_IEC_RESULT;xInit:BOOL;RESTORE:bool;END_VAR//CmpApp+CAAFile+SysTypesInterfacesIFNOTxInitTHENÂ Â pApp:=AppGetCurrent(pResult:=ADR(Result));Â Â Â xInit:=TRUE;Â Â Â RESTORE:=TRUE;Â Â Â PERSIST_RESTAUREES:=FALSE;Â END_IFIFSAUVEGARDER=TRUEANDNOTRESTORETHENÂ Â fbDelete(xExecute:=TRUE,sFileName:=sFileName);Â Â IFfbDelete.xDoneOR(fbDelete.xErrorANDfbDelete.eError=File.Error.NOT_EXIST)THENÂ Â Â Â fbDelete(xExecute:=FALSE);Â Â Â Â IFpApp<>0THENÂ Â Â Â Â Â Result:=AppStoreRetainsInFile(pApp,sFileName);Â Â Â Â END_IFEND_IFIFRESTORETHENÂ Â Result:=AppRestoreRetainsFromFile(pApp,sFileName);END_IF
Hi,
I make backup of persistant on sd card, with date and hour name, with AppStoreRetainsInFile.
Question 1: is it possible to store backup files on external USB flash disk ?
Question 2: I would like to choose with webvisu, which backup file I have to restore, with AppRestoreRetainsFromFile. How to make chooser of file ?
1- How ? On raspberry, it's : "/mnt/sdb1" ?
I use this code:
I have to specify ?```
sFileName : STRING := '/mnt/sdb1/data.ret' ;
parameter : filelistprovider; type: VISU_FBFILELISTPROVIDER; Value : ????
```
Point 1 :
I do auto mount usb disk on /media/usb with user pi.
On sFilename I do: '/media/usb/data.ret'. It work.
And for point 2: I need help !
I analyse example VisuDialogST, but the second application which can help me, doen't work. Please help me !
Edwin, could you help me !?!