No, don't change the config.py directly. Create a new file naming config_local.py in the same directory and paste the following in it:
LOG_FILE = '/var/log/pgadmin4/pgadmin4.log' SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db' SESSION_DB_PATH = '/var/lib/pgadmin4/sessions' STORAGE_DIR = '/var/lib/pgadmin4/storage' Change the values above to the desired location. Restart the pgadmin server to reflect the change.
I am curious if there is a way to redirect user data from being stored in 'AppData' to being stored in a different file share (i.e D:\Home\"username"\pgAdmin\
I'm using Windows Server 2019 for pgAdmin 4.
I'm looking to do this to resolve users losing data when servers are rebuilt during AWS AMI's updates.