CN106101265A - A kind of method carrying out file synchronization between Dropbox and desktop end - Google Patents

A kind of method carrying out file synchronization between Dropbox and desktop end Download PDF

Info

Publication number
CN106101265A
CN106101265A CN201610589083.1A CN201610589083A CN106101265A CN 106101265 A CN106101265 A CN 106101265A CN 201610589083 A CN201610589083 A CN 201610589083A CN 106101265 A CN106101265 A CN 106101265A
Authority
CN
China
Prior art keywords
dropbox
list
folder
file
desktop end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610589083.1A
Other languages
Chinese (zh)
Inventor
刘福才
周庆勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Software Co Ltd
Original Assignee
Inspur Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201610589083.1A priority Critical patent/CN106101265A/en
Publication of CN106101265A publication Critical patent/CN106101265A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention be more particularly directed to a kind of method carrying out file synchronization between Dropbox and desktop end.The method that should carry out file synchronization between Dropbox and desktop end, first, synchronization folder is set at desktop end and starts synchronous task, then desktop end synchronous documents and Folder List and network disk file and Folder List are contrasted, generate synchronous task list, (4) Dropbox performs the synchronous task being responsible for by Dropbox according to synchronous task list, performs synchronous task after desktop end obtains synchronous task list simultaneously.The method that should carry out file synchronization between Dropbox and desktop end, be easily achieved, development cost low, achieve file automatic bidirectional between Dropbox and desktop end to synchronize, it is possible to meet the demand that each enterprises and institutions exist, suitable popularization and application based on problems such as data managements.

Description

A kind of method carrying out file synchronization between Dropbox and desktop end
Technical field
The present invention relates to field of computer technology, between Dropbox and desktop end, carry out file synchronization particularly to a kind of Method.
Background technology
Dropbox is a kind of online storage service, provides a user with the storage of file, accesses, backs up, the file management such as shares Etc. function.Dropbox typically directly can be accessed by webpage, it is possible to is accessed by desktop end, and no matter desktop end uploads download speed Degree, ease for use, functional all have great advantage than webpage version.A lot of Internet firm is had to provide multiple paying or free at present Version Dropbox and desktop software, they functional similarities but be also respectively arranged with uniqueness function.But a lot of governments and enterprise are for number According to safely, be easy to the consideration of management, function and the aspect such as version is controlled, all select the Dropbox of application oneself.File synchronization It is the common expanded function of Dropbox, most user's request being desirable that, Dropbox has file automatic synchronizing function, because of This file synchronization is the function that a lot of Dropbox developer has needed.
Existing network disk file synchronizing function applies a lot of technology points such as system event seizure, and these technical difficulty are relatively Greatly, development cost is higher.
For the problems referred to above, the present invention devises a kind of method carrying out file synchronization between Dropbox and desktop end.Purport Synchronous method a kind of simply in offer, that be easily achieved, is used for realizing file and realizes synchronizing merit between Dropbox and desktop end Energy.
Summary of the invention
The present invention is in order to make up the defect of prior art, it is provided that one is simply entered efficiently between Dropbox and desktop end The method of row file synchronization.
The present invention is achieved through the following technical solutions:
A kind of method carrying out file synchronization between Dropbox and desktop end, it is characterised in that comprise the following steps:
(1) first, synchronization folder it is set at desktop end and starts synchronous task;
(2) obtain desktop end synchronous documents and Folder List, obtain the synchronisation snapshot of last time simultaneously, and generate on this basis File or folder change list;
(3) and call Dropbox sync cap, Dropbox synchronous documents and Folder List, then contrast desktop end synchronous documents are obtained With Folder List and Dropbox synchronous documents and Folder List, generate synchronous task list;
(4) Dropbox performs the synchronous task being responsible for by Dropbox according to synchronous task list, and desktop end obtains synchronous task row simultaneously Synchronous task is performed after table;
(5) after desktop end performs synchronous task, while updating synchronisation snapshot, judge whether user stops synchronous task, if stopping Then operation terminates, if not stopping, returning step (1) and starting synchronous task.
In described step (2) and step (5), synchronisation snapshot have recorded the shape of desktop end synchronization folder after file synchronization State, including all of fileinfo and folder information, folder information includes Folder Name and path, and fileinfo includes File name, path and summary hashed value.
In described step (3), synchronous task list includes the Folder List that local disk needs create, and local disk needs Folder List to be deleted, local disk needs the listed files deleted, and local disk needs listed files and the basis uploaded Local disk needs the listed files downloaded, and desktop end gets synchronous task list after calling Dropbox sync cap, and described In step (4) according to synchronous documents list successively perform create file, Delete Folder, delete file, upper transmitting file and under Carry file operation.
The invention has the beneficial effects as follows: should between Dropbox and desktop end, carry out file synchronization method, it is easy to accomplish, open Send out low cost, it is achieved that file automatic bidirectional between Dropbox and desktop end synchronizes, it is possible to meet each enterprises and institutions' base In the demand that the problems such as data management exist, suitable popularization and application.
Accompanying drawing explanation
Accompanying drawing 1 is the method schematic diagram that the present invention carries out file synchronization between Dropbox and desktop end.
Detailed description of the invention
In order to make the technical problem to be solved, technical scheme and beneficial effect clearer, below tie Closing drawings and Examples, the present invention will be described in detail.It should be noted that, specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
The method that should carry out file synchronization between Dropbox and desktop end, comprises the following steps:
(1) first, synchronization folder it is set at desktop end and starts synchronous task;
User selects a local synchronization file A(such as " D: synchronization folder " in desktop end), one or more net Dish file B1, B2 etc. (such as "/individual Dropbox/my picture "), desktop end will create Ziwen under local synchronization file Part folder C1, C2 etc., sub-folder path keeps consistent (as it has been described above, desktop end will be at locally created file with network disk file folder Folder " D: synchronization folder individual's Dropbox my picture ").
File synchronization function between desktop end and Dropbox i.e. at network disk file folder B1, B2 etc. (such as "/individual Dropbox/my figure Sheet ") and local folders C1, C2 etc. (as " D: synchronization folder individual's Dropbox my picture ") between carry out the most double To synchronization.User has only to specify local synchronization file A(such as " D: synchronization folder ") and network disk file press from both sides B1, B2 etc. (such as "/individual Dropbox/my picture ").
Adding file synchronization at desktop end and arrange interface, interface element includes: select local synchronization catalogue;Selection Dropbox is same Step catalogue (list);Synchronize start stop switch (optional);Synchronize to perform the time period (optional).
Event is added: under local synchronization file, create file synchronization (such as " D: synchronization folder ") after being provided with File (as " D: synchronization folder individual's Dropbox my picture "), then start synchronous task, synchronous task cycle Perform.
(2) obtain desktop end synchronous documents and Folder List, obtain the synchronisation snapshot of last time simultaneously, and on this basis Generate file or folder change list;
Obtain local synchronization file (as " and D: synchronization folder individual's Dropbox my picture ") under all sub-folders With listed files (list 1);
Obtain the file after synchronously completing last time and Folder List snapshot (list 2, when performing for the first time, list 2 is empty), soon According to being saved in the medium such as data base, file system;
Comparison list 1 and list 2, list 1 is the file deleted of user and file (list 3), list 1 less than the item of list 2 Being the file that increases newly of user and file (list 4) more than the item of list 2, the different file of digest value is the file that user updates (list 5).
And call Dropbox sync cap (3), obtaining Dropbox synchronous documents and Folder List, then contrast desktop end synchronizes File and Folder List and Dropbox synchronous documents and Folder List, generate synchronous task list;
Obtain the All Files under Dropbox synchronization folder (such as "/individual Dropbox/my picture ") and Folder List (list 0);
List 0 is compared with the list 1 that desktop end transmits, and reference listing 3, list 4, list 5, form synchronous task row Table;
Described task list has 5 kinds of lists, needs the Folder List (list A) created, local disk including local disk Needing the Folder List (list B) deleted, local disk needs the listed files (list C) deleted, on local disk needs The listed files (list D) passed and local disk need the listed files (list E) downloaded.
List 0 being compared with list 1, the situation that comparison is likely to occur includes:
Note: √ represents file or folder and exists in this list, × represent file or folder and do not exist in this list; 9th, 10 row only judge when list 0 is different from document in list 1, make a summary identical, do not carry out any operation.
(4) Dropbox performs the synchronous task being responsible for by Dropbox according to synchronous task list, and desktop end obtains and synchronizes to appoint simultaneously Synchronous task is performed after business list;
Desktop end gets synchronous task list after calling Dropbox sync cap, perform successively according to synchronous documents list to create literary composition Part folder (corresponding lists A), deletes file (corresponding lists C), Delete Folder (corresponding lists B), upper transmitting file (corresponding lists D) Operate with downloading file (corresponding lists E).
(5), after desktop end performs synchronous task, while updating synchronisation snapshot, judge whether user stops synchronous task, if Stop then operation to terminate, if not stopping, returning step (1) and starting synchronous task.
List 1 data are updated data base and covers synchronisation snapshot;Simultaneously when performing task list, by file and file Folder change updates to snapshot.Synchronisation snapshot have recorded the state of desktop end synchronization folder after file synchronization, including all of literary composition Part information and folder information, folder information includes Folder Name and path, and fileinfo includes file name, path and Summary hashed value.

Claims (3)

1. the method carrying out file synchronization between Dropbox and desktop end, it is characterised in that comprise the following steps:
(1) first, synchronization folder it is set at desktop end and starts synchronous task;
(2) obtain desktop end synchronous documents and Folder List, obtain the synchronisation snapshot of last time simultaneously, and generate on this basis File or folder change list;
(3) and call Dropbox sync cap, Dropbox synchronous documents and Folder List, then contrast desktop end synchronous documents are obtained With Folder List and Dropbox synchronous documents and Folder List, generate synchronous task list;
(4) Dropbox performs the synchronous task being responsible for by Dropbox according to synchronous task list, and desktop end obtains synchronous task row simultaneously Synchronous task is performed after table;
(5) after desktop end performs synchronous task, while updating synchronisation snapshot, judge whether user stops synchronous task, if stopping Then operation terminates, if not stopping, returning step (1) and starting synchronous task.
The method carrying out file synchronization between Dropbox and desktop end the most according to claim 1, it is characterised in that: described In step (2) and step (5), synchronisation snapshot have recorded the state of desktop end synchronization folder after file synchronization, including all of Fileinfo and folder information, folder information includes Folder Name and path, and fileinfo includes file name, path With summary hashed value.
The method carrying out file synchronization between Dropbox and desktop end the most according to claim 1, it is characterised in that: described In step (3), synchronous task list includes the Folder List that local disk needs create, and local disk needs the file deleted Folder list, local disk needs the listed files deleted, under local disk needs the listed files uploaded and local disk to need The listed files carried, desktop end gets synchronous task list, and basis in described step (4) after calling Dropbox sync cap Synchronous documents list performs to create file, Delete Folder successively, deletes file, upper transmitting file and download file operation.
CN201610589083.1A 2016-07-26 2016-07-26 A kind of method carrying out file synchronization between Dropbox and desktop end Pending CN106101265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610589083.1A CN106101265A (en) 2016-07-26 2016-07-26 A kind of method carrying out file synchronization between Dropbox and desktop end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610589083.1A CN106101265A (en) 2016-07-26 2016-07-26 A kind of method carrying out file synchronization between Dropbox and desktop end

Publications (1)

Publication Number Publication Date
CN106101265A true CN106101265A (en) 2016-11-09

Family

ID=57450454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610589083.1A Pending CN106101265A (en) 2016-07-26 2016-07-26 A kind of method carrying out file synchronization between Dropbox and desktop end

Country Status (1)

Country Link
CN (1) CN106101265A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649625A (en) * 2016-12-06 2017-05-10 曙光信息产业(北京)有限公司 File synchronization method and system
CN107577718A (en) * 2017-08-10 2018-01-12 上海斐讯数据通信技术有限公司 A kind of method and system of the file synchronization of Dropbox server and terminal
CN108197155A (en) * 2017-12-08 2018-06-22 深圳前海微众银行股份有限公司 Information data synchronous method, device and computer readable storage medium
CN110287159A (en) * 2019-06-03 2019-09-27 北京一览群智数据科技有限责任公司 A kind of document handling method and device
CN110888758A (en) * 2019-11-15 2020-03-17 天津联想协同科技有限公司 File control method, file recovery method, file control device, file recovery device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404338A (en) * 2011-12-13 2012-04-04 华为技术有限公司 File synchronization method and device
CN103220358A (en) * 2013-04-19 2013-07-24 李晶 Multi-terminal on-line file synchronizing method, system, server, and terminal device
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
US8825597B1 (en) * 2009-08-13 2014-09-02 Dropbox, Inc. Network folder synchronization
US20150234712A1 (en) * 2014-02-18 2015-08-20 Ca, Inc. Methods of synchronizing files including synchronized hash map linked lists and related data processing nodes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825597B1 (en) * 2009-08-13 2014-09-02 Dropbox, Inc. Network folder synchronization
CN102404338A (en) * 2011-12-13 2012-04-04 华为技术有限公司 File synchronization method and device
CN103220358A (en) * 2013-04-19 2013-07-24 李晶 Multi-terminal on-line file synchronizing method, system, server, and terminal device
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
US20150234712A1 (en) * 2014-02-18 2015-08-20 Ca, Inc. Methods of synchronizing files including synchronized hash map linked lists and related data processing nodes

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649625A (en) * 2016-12-06 2017-05-10 曙光信息产业(北京)有限公司 File synchronization method and system
CN106649625B (en) * 2016-12-06 2020-12-22 曙光信息产业(北京)有限公司 Method and system for file synchronization
CN107577718A (en) * 2017-08-10 2018-01-12 上海斐讯数据通信技术有限公司 A kind of method and system of the file synchronization of Dropbox server and terminal
CN108197155A (en) * 2017-12-08 2018-06-22 深圳前海微众银行股份有限公司 Information data synchronous method, device and computer readable storage medium
CN110287159A (en) * 2019-06-03 2019-09-27 北京一览群智数据科技有限责任公司 A kind of document handling method and device
CN110888758A (en) * 2019-11-15 2020-03-17 天津联想协同科技有限公司 File control method, file recovery method, file control device, file recovery device and storage medium

Similar Documents

Publication Publication Date Title
CN106101265A (en) A kind of method carrying out file synchronization between Dropbox and desktop end
AU2017203690B2 (en) File-level commenting
US8838681B2 (en) Systems and methods for adding digital content to content management service accounts
US9866508B2 (en) Aggregating and presenting recent activities for synchronized online content management systems
CN102882985B (en) Based on the file sharing method that cloud stores
US9672221B2 (en) Identification of moved or renamed files in file synchronization
CN103533006B (en) A kind of joint cloud disk client, server, system and joint cloud disk service method
US9055063B2 (en) Managing shared content with a content management system
US10057318B1 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
US9565232B2 (en) Importing content items
CN101160903B (en) Method, system, client terminal and server for implementing data synchronization
US11914585B2 (en) Servicing queries of a hybrid event index
CN105376277B (en) A kind of method of data synchronization and device
US20170193039A1 (en) Servicing queries of an event log
US10235504B2 (en) Facilitating access to content from group interactions
CN103037005B (en) The file synchronisation method of online storage service and device
CN104348859B (en) File synchronisation method, device, server, terminal and system
US20150227605A1 (en) Information processing terminal, synchronization control method, and computer-readable recording medium
CN103841180B (en) A kind of network data synchronizing method, apparatus, terminal device and server based on operational order
CN103634406A (en) File synchronization method and terminal thereof
US20140136496A1 (en) System, method and non-transitory computer readable storage medium for supporting network file accessing and versioning with multiple protocols in a cloud storage server
US11003711B2 (en) Accessing audio files from an online content management system
CN105824723A (en) Method and system for backup of data of public cloud storage account
US9436769B2 (en) Automatic device upload configuration
CN109951567A (en) A kind of Double Data center applications dispositions method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109

RJ01 Rejection of invention patent application after publication