Page 1 of 1

Backup environment variable

Posted: 07 Feb 2023, 07:58
by joks
Hello,
i read parameters in help and i see that there is variables like:
%PICTURES, %VIDEOS, %DESKTOP and %DOCUMENTS so:

1. can you add also %DOWNLOADS ?

ps: could you check if the variables work in the latest version?

i use Cobian Reflector as Windows Services default run as SYSTEM
and when i change in SOURCE environment variable from my old like:
C:\Users\admin\Desktop to %DESKTOP in Cobian tasklist my size from 2GB show 0 bytes and when i run backup job it`s create only archive with 1kb without errors. i delete backup job and create new one with all parameters %PICTURES, %VIDEOS, %DESKTOP and %DOCUMENTS and again tasklist show 0 bytes and all archive have 1 kb. when i edit backup job and add manual all path C:\Users\admin\Desktop, C:\Users\admin\Pictures, C:\Users\admin\Videos, C:\Users\admin\Documents tasklist show correct size and backup end successful.
here is the screenshoot with added variables
Zrzut ekranu 2023-02-07 075729.jpg
Zrzut ekranu 2023-02-07 075729.jpg (105.58 KiB) Viewed 1336 times

Re: Backup environment variable

Posted: 07 Feb 2023, 15:42
by cobian
Will see what can be done.

Re: Backup environment variable

Posted: 08 Feb 2023, 20:47
by wios
I also noticed that none of the variables work. I am using cobian in service mode run as domain account because I'm uploading files to a network drive. if I can help in any way by testing the version or sending logs let me know. I really miss this option because using variables I could create one task with %userprofile% and distribute task to several computers without any manual corrections in task path.

Re: Backup environment variable

Posted: 08 Feb 2023, 23:50
by cobian
All documented variables DO work.

Re: Backup environment variable

Posted: 09 Feb 2023, 11:13
by wios
if variables work for you so what i do wrong ? :oops:
i manual in sources add %DESKTOP and add next manual source %DOCUMENTS or maybe i must change how Cobian works and disable Cobian services startup and run Cobian as application with GUI ? because in logs i see that variable %DESKTOP want backup C:\WINDOWS\system32\config\systemprofile\Desktop instead C:\%userprofile%\Desktop so variables don't work with the system service ??
screnshoot.jpg
screnshoot.jpg (42.19 KiB) Viewed 1265 times
screnshoot2.jpg
screnshoot2.jpg (252.38 KiB) Viewed 1265 times

Re: Backup environment variable

Posted: 09 Feb 2023, 16:58
by cobian
The SYSTEM account is a special account. These are the correct folders for that account. Run the service under your account to obtain the expected results.

Re: Backup environment variable

Posted: 14 Feb 2023, 12:18
by joks
so i switch form system services to GUI Application and everything works fine. Now i'm missing only variable %DOWNLOADS :-D and I will have a universal MainList.lst for all computers. I will be grateful for your great work with a small donation :OK

Re: Backup environment variable

Posted: 14 Feb 2023, 19:01
by cobian
%DOWNLOADS is not an OS variable often it depends on the browser being used (especially on older windows versions)