We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Problem with Backups and Filenames with accents (UTF-8 ENCODING) Topic is solved
Problem with Backups and Filenames with accents (UTF-8 ENCODING)
Hi, I use VestaCP and I want to check backups in a secondary Server. When I do it I have a problem, in upload folder of one of my domains (wp-content/uploads/) there are a few files with accents in filename. When I check restored website I lose some images links because backup job change this accents with special characters using UTF-8 encoding.
For example, original filename:
Filename in backup:
Result:
There is some option to make backup and keep the original filename?
Thanks in advance!
For example, original filename:
Code: Select all
wp-content/uploads/Gestión.jpg
Code: Select all
wp-content/uploads/Gestión.jpg
Code: Select all
ó = ó
Thanks in advance!
Last edited by gcasas on Wed Jan 09, 2019 12:22 pm, edited 1 time in total.
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Problem with Backups and Filenames with accents (UTF-8 ENCODING)
This is not a Vesta issue, this is php/wordpress issue.
Re: Problem with Backups and Filenames with accents (UTF-8 ENCODING)
Hi, thanks for your answer, but I think that this is not php/wordpress issue,.. I also tested with vestacp default domain.
Yourself can make a site backup of some of your sites and check if the file (with accent) have the same name.
I don't know how vestacp make backups, so I think that there is some option to solve this. I make backups with rsync and I have no problems with accents.
thanks,
Re: Problem with Backups and Filenames with accents (UTF-8 ENCODING)
Hello, has anyone checked if same thing happens? Thank you!
Re: Problem with Backups and Filenames with accents (UTF-8 ENCODING)
Hi
This issue happen in a lot of ways.
You can get this issue also if you download from FTP in incorrect format and upload to orther server, this is not a panel problem, happen in cpanel, plesk, directadmin and webservers without panel, the big problem here is than people upload file names with special characters.
You can try download afected files with FTP in binary mode or forcing utf8 and upload it to new server to fix, also take a look locales and charset setup in both server.
May you think is a vesta issue, but vesta just run a tar / gz, so is a tar / gz issue or your server charset.
You also can try rsync your files rsync, should handle this problem in most cases.
----------
Mire comendación, no suba archivos con caracteres especiales, genera muchos problemas en muchos sitios y muchos paneles, creame que no es un problema de vestacp.
This issue happen in a lot of ways.
You can get this issue also if you download from FTP in incorrect format and upload to orther server, this is not a panel problem, happen in cpanel, plesk, directadmin and webservers without panel, the big problem here is than people upload file names with special characters.
You can try download afected files with FTP in binary mode or forcing utf8 and upload it to new server to fix, also take a look locales and charset setup in both server.
May you think is a vesta issue, but vesta just run a tar / gz, so is a tar / gz issue or your server charset.
You also can try rsync your files rsync, should handle this problem in most cases.
----------
Mire comendación, no suba archivos con caracteres especiales, genera muchos problemas en muchos sitios y muchos paneles, creame que no es un problema de vestacp.
Re: Problem with Backups and Filenames with accents (UTF-8 ENCODING)
Hi all, finally I solved the problem using (--format=posix --> info https://www.gnu.org/software/tar/manual ... tar_8.html)
In vestacp server edit line:244 of script v-backup-user
Original
Mod
There is some way to report this issue to vestacp team?
Thanks!
In vestacp server edit line:244 of script v-backup-user
Code: Select all
nano /usr/local/vesta/bin/v-backup-user
Code: Select all
# Backup files
tar --anchored -cpf- ${fargs[@]} * |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
Code: Select all
# Backup files
tar --format=posix --anchored -cpf- ${fargs[@]} * |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
There is some way to report this issue to vestacp team?
Thanks!
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Problem with Backups and Filenames with accents (UTF-8 ENCODING)
You can create an issue here: https://github.com/serghey-rodin/vesta/issues/new
And you can fork this project and send pull-request with your fix.