• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Image issue after transfer

octoma

New Pleskian
Hi, all. I'm new to Plesk, and I ran into a strange issue.

I transferred about 300k images (jpg) one directory to another all within the same httpdocs directory. The strange thing is that the files aren't working. and have an icon with a [01] instead of normal image icon. It all looks well from my FTP client, but, when I go into Plesk file manager, then I notice the issue. the file name contains the proper extension but here is where it gets really strange.

1) Both Plesk and Fftp show a file size but, when I download the file to my PC it shows 0-bytes
2) If I try to rename the file viaPlesk file manager and click ok without actually renaming or changing anything, the file is fixed. (see Photo)
3) If I try to rename the file via FTP client nothing changes at all. only works when I use Plesk file manager.

I have way too many files to manually go through and rename them in Plesk file manager so, I tried bash rename from .jpg to .gif and nothing! It won't change them... I think the issue is it can't see the .jpg extension to make the change. The directory is set to 0777 along with all of the files in it.

any ideas?


screen.jpg
 
thanks for replying Peter.
I used
Code:
rsync -a -v --ignore-existing src dst /var/www/vhosts/file location/. /var/www/vhosts/file dest
 
Ok, after trying a few things, I suspect that somehow the extension became a part of the actual file name or... something??
I ran a few rename options but nothing worked until I tried this.
Code:
rename 's/jpg?.*/jpg/' *

I transferred a few files into a test directory and it worked perfectly to fix them BUT, when I try to use the command in the main directory, I get the following
:eek:
Code:
-bash: /usr/bin/rename: Argument list too long
Any ideas?
 
How about using a simple copy command instead of rsync:
# cp -R <source> <dest>
for example
# cp -R /var/www/vhosts/<source subscription>/<source directory> /var/www/vhosts/<target subscription>
Or all files within the same /httpdocs directory to another directory even simpler
# cp -R /<source>/*.* /<destination>
 
Back
Top