Skip to main content

bash script for backup all user and save in specific directory

Comments

4 comments

  • behinam
    when i run script i give this error: Unable to get user id for user "/var/cpanel/users/mrarzani" Usage: /usr/local/cpanel/bin/pkgacct [options] user [workdir] user = the user to package workdir = the directory to put the package
    0
  • andrew.n
    Hello, As the script say you can specify the workdir like: /scripts/pkgacct $USER /backup You can find more info about the available options here:
    0
  • behinam
    I used this code: for user in `ls /var/cpanel/users | grep -v "\."`;do /scripts/pkgacct $user /backup ;done
    Problem Solved.
    0
  • cPRex Jurassic Moderator
    I'm glad you were able to get that working how you hoped!
    0

Please sign in to leave a comment.