Join the community today
Become a Member

Centmin Option 21

Discussion in 'Other Centmin Mod Installed software' started by Itworx4me, Aug 25, 2024.

  1. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    8:21 PM
    Nginx 1.27.4
    MariaDB 10.6.21
    Hello @eva2000
    Is there a tutorial for using Centmin option 21? I would like to transfer one of my sites to a test server for the purpose of testing an upgrade to 2.3.3 Xenforo. Does the transfer leave the original files in tact so the site runs as normal? Just don't want something bad to happen to the original site. I know I need to do a backup of the files which will be done. Just looking for some guidance on using option 21.

    Thanks,
    Itworx4me

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,801
    12,271
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,857
    Local Time:
    1:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    There's very detailed centmin.sh menu option 21 documentation for Centmin Mod 131.00stable and Centmin Mod 140.00beta01. There are separate links as documentation will eventually diverge as Centmin Mod 140.00beta01 development continues to improve on the code.

    Yes it does leave source data intact so you can run it multiple times for testing. Just be aware that each backup run will take up disk space on your source data/original server so ensure you have enough free disk space.

    Rough idea of data set size for Centmin Mod standard install can be found via these commands unless you have saved data outside of these standard directories and their respective subdirectories.
    Code (Text):
    du -sh /usr/local/nginx /home/nginx /root/tools /var/lib/mysql /root/.acme.sh


    If it's a test you can always run a test VPS with test data and then treat that as source data and do a test migration on to a 2nd test VPS until you are familiar with the process and ready for live server migration.
     
  3. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    8:21 PM
    Nginx 1.27.4
    MariaDB 10.6.21
    @eva2000 I have been playing around with option 21. Trying out the different options. How does one safely remove the files from /home/databackup?

    Thanks,
    Itworx4me
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,801
    12,271
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,857
    Local Time:
    1:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    They're just directories within /home/databackup so delete them like any other directory or if you want to start fresh, just delete /home/databackup and it will delete everything within it
     
  5. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    8:21 PM
    Nginx 1.27.4
    MariaDB 10.6.21
    Code:
    rm -R /home/databackup 
    Is this the correct way to do it?
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,801
    12,271
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,857
    Local Time:
    1:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    if you are unsure of a linux command, tag --help or -h to end and it will give you the supported options
    Code (Text):
    rm --help
    Usage: rm [OPTION]... [FILE]...
    Remove (unlink) the FILE(s).
    
      -f, --force           ignore nonexistent files and arguments, never prompt
      -i                    prompt before every removal
      -I                    prompt once before removing more than three files, or
                              when removing recursively; less intrusive than -i,
                              while still giving protection against most mistakes
          --interactive[=WHEN]  prompt according to WHEN: never, once (-I), or
                              always (-i); without WHEN, prompt always
          --one-file-system  when removing a hierarchy recursively, skip any
                              directory that is on a file system different from
                              that of the corresponding command line argument
          --no-preserve-root  do not treat '/' specially
          --preserve-root[=all]  do not remove '/' (default);
                                  with 'all', reject any command line argument
                                  on a separate device from its parent
      -r, -R, --recursive   remove directories and their contents recursively
      -d, --dir             remove empty directories
      -v, --verbose         explain what is being done
          --help     display this help and exit
          --version  output version information and exit
    
    By default, rm does not remove directories.  Use the --recursive (-r or -R)
    option to remove each listed directory, too, along with all of its contents.
    
    To remove a file whose name starts with a '-', for example '-foo',
    use one of these commands:
      rm -- -foo
    
      rm ./-foo
    
    Note that if you use rm to remove a file, it might be possible to recover
    some of its contents, given sufficient expertise and/or time.  For greater
    assurance that the contents are truly unrecoverable, consider using shred.
    
    GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
    Full documentation at: <https://www.gnu.org/software/coreutils/rm>
    or available locally via: info '(coreutils) rm invocation'
    

    Out of habit to not delete the wrong directories and limit damage, I usually change into the directory I want to delete. Make it a habit :)
    Code (Text):
    cd /home/databackup
    rm -rf /home/databackup