Copying URL Config rules to multiple sites

From Adult Web Scripts Wiki

Jump to: navigation, search

You can dump your urlconfig rules from one site and then import to any other using the zestoi cli.

Steps

  • First save the config file from your first site:
   php zestoi.php -e 2
  • Copy the config file to site2:
   cp 2 /path/to/site2/zestoi/bin
  • Import to site2:
   cd /path/to/site2/zestoi/bin
   php zestoi.php -u 2

Example

 $ cd ~/websites/site1.com/html/zestoi/bin
 $ php zestoi.php -e 2
 written '2'
 $ cp 2 ~/websites/site2.com/html/zestoi/bin
 $ cd ~/websites/site2.com/html/zestoi/bin
 $ php zestoi.php -u 2
 updated

Notes

Config id 1 is always the base config and config id 2 is always the urlconfig. Others will vary. To list your config files run this:

 $ php zestoi.php -l --channel config
 7       config  -       webcams niche Online Guys
 6       config  -       webcams niche Online Girls
 5       config  -       webcams niche All Online
 4       config  -       sitemaps global config  
 3       config  -       rssfeeder global config 
 2       config  -       global site urlconfig   
 1       config  -       global site config