dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse


Our Discord Notification Server invitation link is https://discord.gg/jB2qmRrxyD

Author Topic: Tailoring Clone for Dev-type Work  (Read 43 times)

Online Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 7364
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 11:46:58 AM
  • Deeply Confused Learner
  • Profession: IT Engineer now retired
Tailoring Clone for Dev-type Work
« on: Yesterday at 01:32:53 AM »
📎 Click on me to view all my attachments
ListAttBBC  |  v6.11  |  2026-09-10  |  Andrew.human & Claude.ai
#FileSizeDownloadsInfoDL
00webroot-recovery-transcript.md36 KB0ℹ️⬇️
01webroot-recovery-transcript.pdf  [native]89.7 KB4ℹ️⬇️
02Tailoring Clone for Dev-type Work - Transcript.md430.4 KB0ℹ️⬇️
03Tailoring Clone for Dev-type Work - Transcript.pdf  [native]640 KB3ℹ️⬇️
04mirror1.sh1.3 KB0ℹ️⬇️
05mirror4.sh836 B1ℹ️⬇️
06filedircmd389 B1ℹ️⬇️
07MIRROR.sh69 B0ℹ️⬇️
08unzip_tarball.sh45 B1ℹ️⬇️
09download_tarball.sh102 B0ℹ️⬇️
10gen_srdb.sh92 B1ℹ️⬇️
11db_links_convert_smf_all_v2.sh1.7 KB1ℹ️⬇️
12dblivesmf-copies.sh767 B1ℹ️⬇️
13gemini-code-1789448692095.sh72 B1ℹ️⬇️
14gemini-code-1789448665863.sh72 B0ℹ️⬇️
15gemini-code-1789448654551.sh33 B0ℹ️⬇️
16gemini-code-1789448650424.sh72 B0ℹ️⬇️
17gemini-code-1789448643464.sh65 B0ℹ️⬇️
18gemini-code-1789448634931.sh44 B1ℹ️⬇️
19gemini-code-1789448627223.sh40 B0ℹ️⬇️
20gemini-code-1789448621178.md542 B0ℹ️⬇️
21conversation-transcript-2026-09-15.md28.1 KB0ℹ️⬇️
22conversation-transcript-2026-09-15.pdf  [native]80.3 KB1ℹ️⬇️
1. copy webroot from Live to Clone via a tarball & 2. copy/edit the databases

Live:

1.
# make the tarball
tar -czvpf /webroot.tar.gz /var/www/html

#check the tarball
sha256sum /webroot.tar.gz   (---> should generate a chksum string)
zcat /webroot.tar.gz | tar -tvf - | wc -l   (---> should generate a large number (of files)

2. "dbbacksmf"



Clone:

1.
# pull it from Live
rsync -av --partial --progress --inplace root@128.199.200.202:/webroot.tar.gz /webroot.tar.gz

# check it
gzip -t /webroot.tar.gz; echo "gzip test exit: $?"   (---> prints nothing and exits 0 if the compressed stream is sound)

# unzip it with one of the following:

# option 1: cd first, then tar the current directory
cd /var/www/html && tar -xzvpf /webroot.tar.gz

# option 2: use tar's -C flag (avoids the cd, safer for scripting)
tar -xzvpf /webroot.tar.gz -C /var/www/html

2.

# copy the DBs
dblivesmf-copies.sh

# edit the DBs
db_links_convert_smf_all_v2.sh



# then the incremental file updates later
mirror1.sh:

Code: [Select]
set -x

rsync -avzP --checksum -e ssh \
    --exclude index.html \
    --exclude manifest.json \
    --exclude private/ \
    --exclude cache/ \
    --exclude webalizer/ \
    --exclude smf20/cache/ \
    --exclude smf21/cache/ \
    --exclude Settings.php \
    --exclude Settings_bak.php \
    --exclude smf20/Settings.php \
    --exclude smf20/Settings_bak.php \
    --exclude smf21/Settings.php \
    --exclude smf21/Settings_bak.php \
    --exclude .htaccess \
    --exclude smf20/.htaccess \
    --exclude smf21/.htaccess \
    --exclude Settings_ISE.json \
    --exclude smf20/Settings_ISE.json \
    --exclude smf21/Settings_ISE.json \
    root@forum.drugs-and-users.org:/var/www/html/ \
    /var/www/html/

« Last Edit: Yesterday at 10:44:35 PM by Chip »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal