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: 1. copy webroot from Live to Clone via a tarball & 2. copy/edit the databases  (Read 6 times)

Online Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 7362
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 02:34:54 AM
  • Deeply Confused Learner
  • Profession: IT Engineer now retired
📎 Click on me to view all my attachments
ListAttBBC  |  v6.11  |  2026-09-10  |  Andrew.human & Claude.ai
#FileSizeDownloadsInfoDL
00mirror1.sh284 B0ℹ️⬇️
01db_links_convert_smf_all_v2.sh1.7 KB0ℹ️⬇️
02dblivesmf-copies.sh767 B1ℹ️⬇️
03unzip_tarball.sh41 B0ℹ️⬇️


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
« Last Edit: Today at 02:34:54 AM 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:
 

Related Topics

  Subject / Started by Replies Last post
3 Replies
521 Views
Last post August 17, 2015, 07:34:43 AM
by Sand and Water
8 Replies
38154 Views
Last post March 09, 2016, 06:46:28 AM
by Chip
5 Replies
51415 Views
Last post February 20, 2017, 06:18:51 AM
by Z
0 Replies
18555 Views
Last post October 02, 2018, 05:47:03 AM
by Chip
0 Replies
17316 Views
Last post January 16, 2025, 08:03:21 AM
by smfadmin
0 Replies
771 Views
Last post May 29, 2026, 04:23:32 AM
by Chip
0 Replies
265 Views
Last post August 21, 2026, 07:45:51 AM
by Chip
0 Replies
260 Views
Last post August 24, 2026, 06:04:22 PM
by Chip
1 Replies
187 Views
Last post August 26, 2026, 01:55:42 PM
by smfadmin
0 Replies
97 Views
Last post September 10, 2026, 08:38:29 AM
by Chip


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