[ad_1]
I am planning to make a fresh copy of my website but keeping the old database. What do you think would be the best way to copy the wp-content folder? I don’t want to just copy/paste this folder since there could be malicious files in it.
[ad_2]
If you don’t want to just copy/paste the folder, then how do you expect to get it on to another server or download it? Are you planning to download each individual file, check each file for anything maliciious and then recreate the entire structure?
Just zip it up, download it & upload it to wherever it needs to go. Incredibly unlikely there’s anything malicious in there, unless you know your site has been compromised and you’ve left that part out of your post? (remember that you also need to export the database, this is not a part of the wp-content directory)
However, you can’t really start fresh if you’re just using the same wp-content folder and database from the previous site. That’s literally the entirety of your site, so you’d basically just be cloning your existing site.
Rsync