• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

IP Mapping using psarestore

D

Datastreet

Guest
How do I create an IP mapping template using psadump. The backup and restore documentation says to use psarestore -m ip_map

but I always get the following error:

[root@web05 bin]# ./psarestore -m ip-file.txt
Option -f <dump_file> is required.
Option -s <shells_map_file> is required.
Usage: ./psarestore [-h] [-L] [-t] [-V vhosts_dir] -f <dump_file> -m <ip_map_file> -s <shells_map_file> [-c clients_map_file] [options]


How do I create the file without it trying to restore a backup. I know it's a dumb question.

Thanks
 
You don't need to use psadump - use the reconfigurator.

#perl /usr/local/psa/bin/reconfigurator.pl file_name

It will create a template for you. Then you can edit the template and run the command again to make the changes.
 
Back
Top