Salta al contenuto principale

Policy to backup %userprofile%

Thread needs solution

Issue:
I am trying to setup a backup policy that backs up the currently logged in users profile.

Background:
Computer name: ido-pc
Current folders in the c:\users\ :
ido (Active Directory user) , Public, Acronis Agent User (local user - the MMS service is running on this user).

Problem:
ido is the main user for the computer ido-pc.
I want to backup the folder c:\users\ido.
I set the policy to backup using the %userprofile% variable and the issue I am having is that B&R backs up c:\users\acronis agent user and not c:\users\ido.
its happens because MMS service is running on the local user (acronis agent user) that the password never expires.
Is there a way to backup c:\users\ido using a variable?

Thanks
Ido

0 Users found this helpful

Service running under agent user won't see any variables like %Userprofile% as their value reflects Agent User settings, not the user in active console session. It's possible to use some system variable, but they need to be set before mms service starts, as it remembers their values at the moment when it starts.
You can create a policy with a rule of some system variable (e.g. %currentuser%) and set such system environment variable to the current user profile on user logon using SETX command, and restart mms cervice to after it. Another way is to backup all C:\users , adding other user like Public and Acronis Agent User to exclusions.

Thank you for the answer.
If I understand - Your suggestion is to create system variable like %currentuser% to the current user (for example - c:\users\ido) ?
that's mean that I need to add a different variable on each computer ?
because each computer has a different user?

Yes, initially I suggested to create such variable and set it to current user dynamically at user's logon (assuming that current user on the computer may change). Add a script to set it in all user's startup programs, and it will be updated when someone logs in.

Can someone post an example of what they did to backup only the desktop and documents folders for any profile that exists under c:\users\    ?

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Messaggi: 250
Commenti: 7092

Jason Klems wrote:

Can someone post an example of what they did to backup only the desktop and documents folders for any profile that exists under c:\users\    ?

Hello Jason,

I've tested the backup plan with the following parameters which seem to fit your scenario:

Items to backup: type [All Profiles Folder] or select it from the drop-down list 

Then go to the Backup options: 
--file filter: Back up only files matching the following criteria: 
**\Favorites\** 
**\Documents\** 
**\Desktop\** 

This will backup all user profiles excluding all folders except those indicated (with files and subfolders). 

Please let me know if the solution works for you.