Linux backup database and upload to remote server (scheduled execution shell for FTP upload)

#========================start shell Script ============================#!/bin/bash# defines the user name and password to use when backing up the database db_user= "root" db _passwd= "111111" #定义FTP服务器地址, user name, password, directory Ftp_url=113.1

First knowledge of SHELL commands

1, shell command commonly known as "shell", it provides a user interface with the kernel to interact with, he accepts the user input command and sends it to the kernel to execute 'The shell is actually a command interpreter that interprets the

Shell scripting Tips (1)-How to resolve a multiline redirect Terminator in a script without snapping to the beginning of the line

1. What is the problem requirement?First, the need to come from, mainly to write shell script, with cat for multi-line input redirection, the Terminator must be hyphenation first, the format is not good-looking.2, how? How to solve this

[Shell] Bash variables: Configuration file and login information for environment variables

Only the environment variables are placed in the configuration file to automatically take effect each time the power-on. SOURCE command: Let the configuration file take effect directly without logging off or logging back in.Source configuration file

Break and continue of the "shell" Linux shell

Break and continue can all be used in the loop, but the two functions are a bit different, for example, break is jumping out of the loop, while continue is jumping out of the loop and going on to the next loop, we'll show the difference between the

The arithmetic operation of Linux shell programming

+ Plus-Minus* Multiply/except* * Sub-party% take-upThese operational symbols need to be escaped in some scenarios. For example, in a wildcard scenarioThe operation must be two brackets or a bracketLet operation does not display the result and

Aix escalation: "Shell would time out in seconds" workaround

This article mainly describes the "Aix escalation:" Shell will time out in the seconds "solution", mainly related to Aix escalation: "Shell will time out in the seconds" solution, for the AIX escalation : "Shell will time out in seconds" solution

[Exec parsing in 100]shell

Reference: Linux commands, editor and Shell programming, advanced Programming for UNIX environmentsReferenceThe bash shell commands are divided into two categories: external commands and internal commands.

Learn the shell of Linux with the uncle. The shell variables in the second section

Shell's variable functionVariables are an important part of the shell, and we know that Linux is a multiuser, multitasking environment where everyone gets a shell when they log into the system, and everyone can use Bash to execute mail to get their

Shell string Processing

One, the string slice:${#var}: Returns the length of the string variable var${var:offset}: Returns the string variable var starting with the character specifier (excluding the first offset character) from the first, to the last part, where the value

Network device automatically backs up shell scripts

This is the case with the switch as an example of the script written, other manufacturers of equipment according to the device command to modify the script.DemandBulk Backup network device profile to FTP server, and automatically compress the

Subtraction operation of time and date in shell

First, let's start by saying what the shell timestamp is:The number of seconds since January 1, 1970 (00:00:00 utc/gmt). It is also known as the Unix timestamp (Unix timestam, Unix epoch, POSIX time, Unix timestamp) is the number of seconds that

[Svc]shell Script

I will regularly collect some good shell and PY scripts to see here, for reference learning:Shell resources:Https://github.com/lannyMa/ops_doc/tree/master/LazyManageCheck Help Chinese Culture sh yum install man-pages-zh-CN -yecho 'LANG=

Shell Learning Notes

I. Shell INTRODUCTIONThe shell is a command-line interpreter for Unix/linux, and a series of commands executed by the user in the shell are executed directly by the shell command-line interpreter. Modern, popular command-line interpretation features

Laravel and Shell planning tasks

PHP itself does not have a timer function,PHP can not be multithreaded. PHP's scheduled task function must be combined with other tools to achieve Linux the script implementationHow to use :crontab Filecrontab [-u user ] [-u user ] {-l |-r |-e}

Linux Series Tutorials (20) shell overview of--linux and how to execute scripts

Starting with this blog, we'll go into the Linux shell Script learning, which is particularly important for Linux learning enthusiasts and a particularly interesting section, as well as the shell script, like the java,php-like programming language

"Linux command line and Shell Scripting Encyclopedia" chapter Fourth

4.1 Monitoring procedures1. PS defaults to only the processes that are running under the current console that belong to the current user. You can take many options, such as-a for all processes-E, and so on.2. Ps-l View process More informationUID:

Shell Script debugging

1. Use the Dos2unix command to process scripts developed under WindowsThe following scenarios for placing scripts under Windows for editing under Linux are as follows:[[email protected] ~]# cat-v nginx.sh #!/bin/bash^Ma=1 n^Msum=0 ^ M while ((a 0

Linux writes operational shell scripts and creates ln connections in other directories and sets boot up

The full ln command reference: http://www.runoob.com/linux/linux-comm-ln.htmlLN: Creating a Connection File-The default is to create a hard connection, like copy, but two files are synchronizedCommand: Ln./java/android/aa.txt AAA-S: Create a soft

Traversal of the shell-array

Multiple values can be stored in an arrayThe shell array is represented by parentheses, and the elements are separated by a "space" symbol.Syntax format:Array_name= (value1 value2 ... valuen)Defining

Total Pages: 541 1 .... 122 123 124 125 126 .... 541 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.