Welcome to Centmin Mod Community
Become a Member

Beta Branch update centmin.sh menu option 21 transfer routine in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 23, 2025.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update centmin.sh menu option 21 transfer routine in 140.00beta01


    - update underlying tunnel-transfers.sh script that is used in centmin.sh menu option 21 to transfer backed up files to remote server so that it supports when you use remote_user that is non-root sudo user. If non-root sudo username is detected, it will use appropriate sudo commands to create the necessary remote server backup directory destinations so as to avoid permission denied errors

    Continue reading...

    140.00beta01 branch
     
  2. redbird

    redbird Member

    109
    15
    18
    Aug 28, 2015
    Web
    Ratings:
    +29
    Local Time:
    11:41 AM
    We actually managed to move data. All needed was just to specify a specific folder that that user had permission to write to on destination server.

    We were also able to restore everything on destination server however ftp does not work now and we can't figure out why. It seems that it does connect but returns 550 error: 550 Can't check for file existance

    Update: when I tried to compare same ftp account on source and destination servers with pure-pw show username there was a difference in UID and GID:
    Source server has 1000 (nginx) but destination server has 1000 (ssh_username)

    These are the only differences.
    Deleting and recreating ftp user resolves the problem but that's not a solution for future migrations
     
    Last edited: Jan 23, 2025
  3. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Yes if you specific folder than sudo user has permissions for it should also do the job. Though my updated fix should do it automatically.

    and user uid/gid matter as well but thanks for the feedback will think of how to deal with differing uid/gids