When we set up automatic database backup , For the sake of data security, it is often necessary to directly back up the data to the remote server . stay Linux Can pass NFS Mount to achieve , stay Windows The platform can go directly through net use+subst To mount the directory of the remote server as a local disk for reading and writing .
machine A:172.168.6.132 Backup server .
machine B:172.168.6.133 database server . In the machine B Perform the following two steps on the : 1. Create a bat Add the file to the project that starts automatically with the system ( Establish user validation with backup server ). The contents are as follows :
net use \\172.168.6.132\c$ cattle /user:administrator c$ Express C disc , It can also be other shared directories .administrator It's an operating system user .cattle yes administrator Password . In this way, it can automatically pass the user validation with the backup server when the computer starts up . 2. use subst The order will \\172.168.6.132\c$ Mount as local disk :
subst E: \\172.168.6.132\c$ This will be \\172.168.6.132\c$ Mount for local E Dish up . You can back up the database directly to E disc , The purpose of putting the backup on the remote server is realized . wow , There's an easier way , Right click on my computer -> Mapping network drives ...-> Set the mapping address , Just set the user name and password .

windows mount windows Shared disk is a local disk

  1. Windows mount NFS Shared disk

    Centos7 add to NFS Please refer to the link below : https://www.cnblogs.com/jackyzm/p/10285845.html One : add to NFS service 1.1: This computer - Right click - management -window ...

  2. linux Automatically mount remote network disk to local

    sudo vim /etc/fstab   Add the following //192.168.1.110/MyFiles /path/to/mount cifs username=adminz,password=pas ...

  3. Through the mount system U Local construction yum Warehouse

    Start by opening hbza(CentOS) and yum, The two need to be connected The first 1 Step : stay hbza Create a directory in Input mkdir /lxk, Name at will . Input mount  /dev/cdrom  /lxk The first 2 Step : open yum, ...

  4. Windows The platform mounts the directory of the remote server as a local disk

    When we set up automatic database backup , For the sake of data security, it is often necessary to directly back up the data to the remote server . stay Linux Can pass NFS Mount to achieve , stay Windows The platform can go directly through net use+subst To implement the remote server directory ...

  5. Ubuntu Next use sshfs Mount remote directory to local ( and Windows It's the same as the mount plate )

    Access to other Ubuntu machine , Hopping from machine to machine , It is trouble , If you can map the remote directory to the local, it will be greatly used , It's like Windows It's the same as the network mapping disk under . stay Linux There is no doubt that there will be such a mechanism and way in our world , lately ...

  6. Local virtual machine mount windows Share the directory to build the development environment

    Turn off firewall ( The local environment Just turn it off )service iptables stop Check that the required samba software package rpm –q samba If not installed yum install samba system-c ...

  7. vmware Virtual machine mount Windows There are two ways to do this

    The first one is vmware Virtual machine through ntfs-3g Hook up windows disc 1. share windows Disk virtual machine settings ——> Add hard disk ——> choice IDE——> Using physical disks ——> Select local disk ( Single zone )— ...

  8. Windows Server mount NFS share

    NFS: Network file system . The main function : Through the network ( LAN ) Allow different host systems to share files or directories . Main uses :NFS Network file system is usually used to store shared video , picture , Attachments and other static resource files . About port instructions : 1 ...

  9. linux Mount under the system windows share directory

    At work, sometimes we need to be in linux Mount windows share directory . First of all, we need to learn how to linux Check out windows Shared those directories . View operation needs to be installed samba-client. [root@ ~]# yum ...

Random recommendation

  1. Magic methods __sleep and __wakeup

    I feel that serialization and deserialization are less used , and json_encode and json_decode It's used a lot , It's all transformed into strings , To put in storage . Transmission, etc .json More convenient , But serialization and deserialization combined with these two magic methods are OK < ...

  2. gitlab establish SSH Keys newspaper 500 wrong

    gitlab establish SSH Keys newspaper 500 wrong Look at the log  root@322323:/home/git/gitlab/log# cat production.log Errno::ENOMEM (C ...

  3. javascript Get current url

    stay WEB In development , Many developers prefer to use javascript To get the current url website , In this paper, we summarize the more commonly used access URL Of javascript Implementation code , The following examples are the corresponding implementation methods mentioned above , And then there's getting URL ...

  4. Twproject Gantt – Open source JavaScript Gantt chart component

    Twproject Gantt It's based on jQuery Developed Gantt chart component , You can also create other charts , For example, the task tree (Task Trees). Built in editing . Zoom and CSS Skin and other functions . what's more , It's free and open source . ...

  5. hadoop Statistical word program WordCount Hint not found WordCount class

    Follow the tutorial here : http://www.imooc.com/learn/391 During the test , Found in wordcount The last step of is always prompting the following error : Exception in thread "main ...

  6. [ Roof placement ] Write it yourself sqlhelper class

    Write it yourself sqlhelper class using System; using System.Collections.Generic; using System.Configuration; using Syst ...

  7. 《JS Authoritative guide learning summary --9.2 Classes and constructors 》

    Main points of content : example 9-1 Show the JS One of the ways to define a class in . But this method is not often used , After all, it doesn't define constructors , Constructors are used to initialize newly created objects . Use keywords new Calling the constructor automatically creates a new object , So the construction function ...

  8. CSS3 in transform A few notes on attribute values

    transform( deformation ) yes CSS3 Attributes of elements in ,transform The attribute values of include rotation rotate. Distortion skew. The zoom scale And mobile translate And matrix deformation matrix The basic usage can refer to the article ...

  9. vue2.0 practice —— Node + vue Realize the mobile official website

    brief introduction Use Node + vue The company's official website for a simple mobile terminal implementation . Source code https://github.com/wx1993/node-vue-fabaocn effect Components Shuffling figure ( Use  vu ...

  10. Java Set class dependencies

    Java There are four types of sets of :List Set Queue Map, Each class has a different implementation , There is an array based implementation , Based on the linked list implementation of , It's based on xx Trees achieve , Although different implementations can replace each other in function, they all have their own application scenarios , Based on ...