Last night I was creating some manual backups from a server including an entire web sites data files as well as the databases associated with that same web site. I decided to use the tar archiving utility to pack all of the files from the web site into a single file so it could be downloaded and stored easily. Use the information below to exclude a sub directory when creating a tar archive.
Tags: archive, exclude, gzip, stdin, stdout, switches, tar, tar.gz, verbose
Posts Tagged “switches”Earlier I was compiling the coreutils application on CentOS Linux and ran into an issue after using the “make” command. At first I was confused because I wasn’t doing anything complex but then I realized that I had simply mistyped an environment variable I had previously set. Below I describe the actual error, what was mistyped, and how I resolved the problem. Tags: -O2, CentOS, CFLAGS, compile, environment variable, error, gcc, Linux, make, static, switches, unrecognized optionWorking on a friends server earlier this morning I noticed that he had logrotate configured but he did not have a configuration file for Postfix. Below is the quick one I whipped up for his environment including a brief explanation of each line of the configuration file below the script. Following the explanation of the various configurations is the command to actually force logrotate to run in debug mode so you can see what happens. Tags: compress, debug, endscript, force, gentoo, Linux, logrotate, logrotate.conf, logrotate.d, missingok, postfix, postrotate, rotate, sharedscripts, switches, weekly
Apr
15
2009
Using mysqldump to Backup MySQL Databases and Restoring with mysqlPosted by Chirag Patel in InsightsDump MySQL database: Use the below mysqldump command syntax to dump a single database from a MySQL mysqldump -u root -ppassword database_name > database_staging-04-14-2008.sql Dump One Table from a MySQL DB: The below syntax will dump one MySQL table including the SQL syntax needed to drop that table if it already exists in the database you eventually restore it to. Tags: --add-drop-table, database, man, mysql, mysqldump, password, switches, username |









Entries (RSS)