Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpanel migrate - a lot of garbage files #941

Open
shoulders opened this issue Oct 22, 2024 · 8 comments
Open

cpanel migrate - a lot of garbage files #941

shoulders opened this issue Oct 22, 2024 · 8 comments

Comments

@shoulders
Copy link

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Usermin version 2.102
Virtualmin version 7.20.2 Pro
Theme version 21.20.7
Apache version 2.4.52
Package updates 9 package updates are available

the issue

When you import a cpanel account it seems to bring a load of gargbage files into the home directory and some subfolders such as /home/etc/

@jcameron the cpanel account I have sent you should show you. I can compile a full list if required but this would take some time and might be a weekend job.

sorry to be a bit lazy on this one.

@iliajie
Copy link
Collaborator

iliajie commented Oct 22, 2024

Hello,

Are you sure that migrating a cPanel backup actually creates a /home/etc directory? That seems bizarre, and if it does, it’s definitely a bug.

@shoulders
Copy link
Author

Let me investigate more at the weekend and I will compile a list of garbage files and folders that are imported or prove myself wrong 😃

But if you import the archive I sent Jamie that should show you.

@jcameron
Copy link
Collaborator

Do you mean /home/etc or /home/migrateduser/etc ? The latter is expected, as all new Virtualmin domains should have it.

@shoulders
Copy link
Author

Do you mean /home/etc or /home/migrateduser/etc ? The latter is expected, as all new Virtualmin domains should have it.

No I mean all over the place in the users home folder /home/myuser/

It is almost like you are just expanding the cpanel archive directly into the virtualmin user folder for some things. I need to fully go over the users folder to properly say what is garbage and what is not.

I will need to manually clean my virtualmin user's folder, this is going to take me ages and I don't even know where to start so this needs to be looked at for people in the future etc... 😄

Just a quick one is: /home/myuser/.spamassassin/ and there are loads of files from my old server. See below. The name was my old servers name.

image

@jcameron
Copy link
Collaborator

jcameron commented Nov 9, 2024

Yes we currently copy over everything from the homedir directory in the backup, or homedir.tar if it exists. If there are directories you think should be excluded, please let me know!

@shoulders
Copy link
Author

shoulders commented Nov 10, 2024 via email

@iliajie
Copy link
Collaborator

iliajie commented Nov 10, 2024

We copy all files because users may have created their own custom directories.

@shoulders
Copy link
Author

That makes sense.

Let me check over the import to see what should not be moved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants