Here is a simple one-liner to reindex backups from the destination just for a single cpanel account:
jetbackup5api -F reindexDestination -D "_id={DESTINATIONID}&account_username={USERNAME}"
Source: Jetbackup5 API
Linux is a family of open-source Unix-like operating systems based on the Linux kernel. Some of the most popular Linux distributions include Debian, Fedora, and Ubuntu.
Here is a simple one-liner to reindex backups from the destination just for a single cpanel account:
jetbackup5api -F reindexDestination -D "_id={DESTINATIONID}&account_username={USERNAME}"
Source: Jetbackup5 API
After extracting an archive on Linux, ŠĆČĐŽ letters get removed in the file names:
To resolve the issue, specify encoding when extracting:
unzip -O UTF-8 ARCHIVE_NAME.zip
Result:
This simple script will search for all wp-config.php files in a directory, pull the database name and create a backup of it. for wpinstall in $(find "$(pwd)"/ -type f -name wp-config.php | sed 's/wp-config.php//g') do echo "$wpinstall" dbname=$(grep...
You can customize Apache (2.4) virtual hosts with Include Files, by creating new include.conf file for that user or for all vhosts on your server. 💡 In the following code snippets make sure to replace: <user> with the cpanel...
I have an SMS booking app running on Ubuntu and will be setting up SMS autoresponder using a HUAWEI Mobile Modem E1550. Remove PIN from the SIM card SIM card has to be without a PIN so if you have purchased a prepaid SIM card that has PIN enabled...
Error encountered while fetching data: Disk full (/tmp/#sql-temptable-196ae-c7e7a-5e2f5.MAI); waiting for someone to free some space… (errno: 28 “No space left on device”) DBDISKUSED pcx3_wp324 0 DISKUSED 0 DB pcx3_wp324 USER...
This one-liner will backup your WordPress files and database into a directory name with today’s date. mkdir -p ../backup/$(date +%Y-%m-%d) ; mysqldump $(grep DB_NAME wp-config.php | grep -v WP_CACHE_KEY_SALT | cut -d \' -f 4) | gzip > ...
This command will search for directories in the current directory and its subdirectories, find the oldest subdirectory in each directory, and display them on to screen: find . -maxdepth 1 -type d -exec sh -c 'oldest_folder=$(ls -ltr "$1" | awk "/^d/...
Here is a small script that I use when migrating WordPress websites from some other panel to cPanel. I export the database on the old server and then simply copy the .sql dump file along with all other WP files from the old server to the new one...
Support universal links are used for iOS developers so that users can tap a link to the website and get seamlessly redirected to their installed app without going through Safari. Apple has pretty well-explained documentation on how to setup...