US20120239894A1 - Backup method for portable device - Google Patents
Backup method for portable device Download PDFInfo
- Publication number
- US20120239894A1 US20120239894A1 US13/487,236 US201213487236A US2012239894A1 US 20120239894 A1 US20120239894 A1 US 20120239894A1 US 201213487236 A US201213487236 A US 201213487236A US 2012239894 A1 US2012239894 A1 US 2012239894A1
- Authority
- US
- United States
- Prior art keywords
- backup
- storage device
- file
- log file
- portable device
- 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.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1456—Hardware arrangements for backup
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
Definitions
- the present invention relates to a backup method, and in particular relates to a backup method for a portable device.
- One solution is to connect the portable device to a computer or data storage device and store data therein.
- this solution may require some driver or specific software for the computer to retrieve and backs up data of the portable device and it is not convenient for a user. If the computer does not install the corresponding application program or driver, the computer cannot access the portable device even to back up data of the portable device.
- An embodiment of the invention provides a backup method for a portable device.
- the method comprises steps of: creating a first log file according to a first file that has to be stored in a backup device; connecting the portable device to the backup device; transmitting the first log file to the backup device; reading the first log file, by the backup device, and storing the first file to a storage device of the backup device; wherein the first log file is transmitted to the storage device via a buffer that is controlled by a controller of the backup device.
- the dock for storing data of a portable device.
- the dock comprises a first storage device, a buffer coupled to the first storage device, and a controller.
- the controller detects whether the portable device connects to the dock, and when the portable device connects to the dock, a first log file is transmitted to the first storage device via the buffer.
- the controller then reads the first log file to store a first file from the portable device, and the controller creates a second log file indicating a backup status of the first file.
- FIG. 1 is a schematic diagram of a backup mechanism for a portable device according to an embodiment of the invention.
- FIG. 2 is a flowchart of a backup method according to an embodiment of the invention.
- FIG. 3 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention.
- FIG. 4 a shows a backup setting menu according to an embodiment of the invention.
- FIG. 4 b shows a customized backup setting menu according to an embodiment of the invention.
- FIG. 4 c shows a re-store setting menu according to an embodiment of the invention.
- FIG. 5 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the present invention.
- FIG. 6 is a flowchart of a backup and re-store method according to another embodiment of the invention.
- FIG. 7 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention.
- FIG. 8 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention.
- FIG. 9 a flowchart of a backup method according to another embodiment of the invention.
- FIG. 1 is a schematic diagram of an embodiment of a backup mechanism for a portable device according to an embodiment of the present innovation.
- the portable device 11 comprises a first application program 13 and a storage device 14 , such as an SD card, CF card or flash memory.
- the backup device 12 comprises a host storage 15 and a controller 16 .
- the user uses the first application program 13 to select and mark files to be backed up and the first application program 13 outputs a log file indicating which files have to be backed up.
- the backup device 12 is electrically connected to the portable device 11 , the backup device 12 reads the log file of the portable device 11 to know which files have to be backed up.
- the backup device 12 may directly read the log file stored in the storage device 14 and the log file would be reserved in the storage device 14 .
- the backup device 12 retrieves and stores the log file in the backup device, and the original log file stored in the will be deleted by the backup device 12 . Then, the backup device 12 acquires and stores the files to be backed up in the host storage 15 .
- the control of the storage device 14 is transferred to the controller 16 of the backup device 12 .
- the backup device 12 creates and stores a host log file in the storage device 14 .
- the host log file records the file storage status.
- the backup device 12 is disconnected from the portable device 11 , and the first application program 13 reads the host log file to know a backup result.
- the host log file may be temporality or permanently stored in the storage device 14 .
- the host log file may be deleted after the first application program 13 reads it for the security concern.
- the present data backup procedure mainly comprises three parts. First, before the portable device 11 is connected to the backup device 12 , the first application program 13 is executed to select and mark files to be backed up by a user. The first application program 13 then creates and stores a log file. The log file contains the information of the files to be backed up. The information may comprise file names of the file to be backed up.
- the control of the storage device 14 is transferred to the backup device 12 .
- the portable device 11 can operate as a peripheral device of the backup device 12 .
- the backup device 12 reads the log file and stores the files to be backed up to the host storage 15 .
- the backup device 12 creates and stores a host log file in the storage device 14 , and breaks down the connection to the portable device 12 .
- the first application program 13 is executed and reads the host log file to know the status of the backup.
- the log file may not only record the information of the files to be backed up, but also a destination folder or path that indicates the destination folder.
- the log file contains a timestamp and the backup device 12 also stores the log file from the portable device 11 .
- the backup device 12 accesses the log file from the portable device 11
- the backup device 12 also reads a previous log file stored in the backup device 12
- the backup device 12 only stores the unstored files according to the log file and the previous log file.
- the backup device 12 comprises a first log file database storing the log files from the portable device 12
- the portable device 11 comprises a second log file data storing the host log files created by the backup device 12 .
- the first application program 13 or the backup device 12 can find a previous host log file or a previous log file to determine which files are new for backup.
- the described backup mechanism also can be applied to the restore function.
- the host log file also contains a timestamp, and when the first application program 13 creates the log file, the first application program 13 will check a previous host log file to see whether the current selected files have been stored in the backup device 12 . If yes, the current log file will exclude the stored files from the current log file. It is noted that, if the destination folder of the destination path of the previously stored files is different from the current destination folder of the destination path, the stored files will be stored in the current destination folder of the destination path.
- the described paragraphs are focused on the backup mechanism for the portable device 11 .
- Another embodiment of the restored mechanism for the portable device 11 is discussed in the following.
- the first application program 13 creates a first log file indicating which files have to be restored to the portable device 11 .
- the controller 16 reads the first log file and restores the requested files to the portable device 11 .
- the backup device 12 also creates and stores a first host log file to the storage device 14 .
- a user can set data between two dates to be restored from the backup device 12 to the portable device 11 .
- the user can input some parameters, such as date and data type information, via the first application program 13 and then the first application program searches matched files stored in the portable device and creates the log file according to the user's inputs.
- the user can set which type of files to be backed up via the first application program. Similarly, this can also be applied to the restore mechanism.
- the type of the file means the file format, such as JPG, JPEG, RAM file format, audio file format, video file format or other formats.
- the backup device 12 may also comprise a second application program for backing up the data of the portable device 11 or restoring the data from the backup device 12 to the portable device.
- the backup device 12 may also comprise a dock for connecting a connector of the portable device 11 .
- Wireless connection mechanisms, security mechanisms or synchronization mechanisms may also be applied to the portable device 11 and backup device 12 .
- the embodiment is illustrated with wired or physical connection between the portable device 11 and the backup device.
- the described backup mechanism can also be applied in the situation that the portable device wirelessly connects the backup device.
- the backup device 12 can communicate with the portable device 11 via wireless interface, such as Wifi, WiMax, Bluetooth, IrDa, NFC (Near Field Communication) or other wireless interfaces.
- wireless interface such as Wifi, WiMax, Bluetooth, IrDa, NFC (Near Field Communication) or other wireless interfaces.
- the backup device 12 automatically wirelessly connects to the portable device and the portable device 11 transfers the control of the storage device 14 to the backup device 12 .
- the backup device 12 Although the portable device 11 is connected to the backup device 12 actually, the backup device 12 only sees the storage device 14 in the aspect view of the backup device 12 . Simply speaking, the backup device 12 is virtually connected to the storage device 14 but actually connected to the portable device. After the virtual connection between the storage device 14 and the backup device 12 is established, the control of the storage device 14 is transferred to the backup device 12 . It means that the user of the portable device 11 cannot see the storage device 14 . When the backup device 12 accesses the storage device 14 , the command, request, or data to the storage device 14 is still transferred by a processor or a control unit of the portable device 11 . The backup device 12 then reads the log file stored in the storage device 14 and backs up the files in the backup device 12 .
- the backup device breaks down the wireless connection to the portable device 11 and the control of the storage device 14 is returned to the portable device 11 . Furthermore, when the storage device 14 is virtually connected to the backup device 12 , a synchronization application program can be executed to directly synchronize and back up the data of the portable device 11 and via the wireless connection, the backup device 12 can simultaneously connects to more than one portable device or other computing device to back up the data therein when the wireless connection has been established.
- FIG. 2 is a flowchart of a backup method according to an embodiment of the present embodiment.
- the portable device receives inputs to select and mark the files to be backed up.
- a user can input parameters via a touch panel or keypad of the portable device to select files to be backed up. Furthermore, voice control may also be applied.
- a first application program of the portable device creates a log file according to user inputs.
- the backup device mounts the portable device, and the control of the storage device 14 is then transferred to the backup device.
- the backup device reads the log file and stores the files from the portable device to the backup device according to the log file.
- step S 24 when the backup device finishes storing data, the backup device creates and stores a host log file in the portable device.
- the backup device dis-mounts the portable device.
- step S 26 the portable device reads the host log file to check the status of the backed up file.
- FIG. 3 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention.
- the portable device 31 comprises a first controller 311 , a first application program 313 and a first storage device 315 .
- the dock 32 comprises a USB OTG (On To Go) controller 321 , a second storage device 323 and a USB connector for connecting a USB storage device 33 .
- the portable device 31 has a connector for connecting the dock 32 .
- the dock 32 has a first slot with a male connector and the portable device 31 has a female connector for connecting the male connector.
- the portable device 31 connects to the dock 32 via a connection cable.
- the first storage device 315 may be a SD card or other kinds of memory cards.
- the first storage device 312 is inserted and mounted to the portable device 31 by user and stores user's personal data.
- the portable device 31 may comprises another storage device storing the necessary data for the operation of the portable device 31 , such as the operating system, application programs or hardware configuration data
- the control of the first storage device is transferred to the USB OTG controller 321 .
- the first storage device 315 can only be accessed by the USB OTG controller 321 and cannot be accessed by the first controller 311 .
- the first application program 313 is executed by the first controller 311 and user can select at least one file to be backed up to the dock 32 via the first application program 313 . After selecting files, the first application program 313 creates a first log files.
- the first application program 313 may show a setting menu for user to select files to be backed up.
- FIG. 4 a shows a backup setting menu according to an embodiment of the invention.
- the backup setting menu 41 comprises option fields 42 to 46 .
- the option field 42 When the option field 42 is selected, all the photo file or image file of the portable device 31 would be backed up to the dock 32 .
- the option field 43 When the option field 43 is selected, all the video files of the portable device 31 would be backed up to the dock 32 .
- the option field 44 When the option field 44 is selected, all the audio files of the portable device 31 would be backed up to the dock 32 .
- the option field 45 is selected, all the document files of the portable device 31 would be backed up to the dock 32 .
- another option menu 48 pops out.
- the option menu 48 contains file names of all files of the portable device 31 and the user can select files to be backed up via the option menu 48 .
- the first application program 313 creates a log file for the dock 32 to back up files.
- the backup setting menu further comprises an option field (not shown in FIG. 4 a ) to back up the contact list of the portable device.
- the contact list does not limit to the phone contact list, and the contact list related to a social network service can also be backed up to the backup device.
- the backup setting menu 41 comprises a destination folder setting option and a synchronization option.
- the user can set a specific folder for storing the backup data from the portable device 31 via the destination folder setting option and creates another folder for synchronizing a designated folder of the portable device 31 . If the user has set synchronization option, the dock 32 will automatically synchronize the portable device 31 and store the modified, changed or newly added file in the designated folder when the portable device 31 connects to the dock 32 .
- the first application program 313 can be executed at anytime base on the need of the user.
- the user can first executes the first application program 313 to create the first log file and then connects the portable device 31 to the dock 32 .
- the user can directly connect the portable device 31 to the dock 32 and after the first controller 311 detects that the portable device 31 has been connected to the dock 32 , the first application program 313 is then automatically executed.
- the first log file contains the information of the files to be backed up.
- the information may comprise file names of the files to be backed up.
- the log file may not only record the information of the files to be backed up, but also a destination folder or path indicating the destination folder that the files to be backed up.
- the log file contains a timestamp and the USB OTG controller 321 backs up data of the portable device 31 only according to the file creation date.
- the dock 32 has backed up the data of the portable device 31 on Jan. 1, 2011, and when the user connects the portable device 31 to the dock 32 on Jan. 11, 2011, the dock 32 only backs up the data generated, changed or modified between Jan. 1, 2011 and Jan. 11, 2011 in the portable device 31 .
- an incremental backup mechanism is applied in the dock 32 .
- the incremental backup preserves data by not creating multiple copies that are based on the differences in those data: a successive copy of the data contains only that portion which has changed since the preceding copy has been created.
- the most basic form of incremental backup involves only those files that have changed since the last backup. Since changes are typically low, incremental backups are much smaller and quicker than full backups.
- the USB OTG controller 321 After the portable device 31 connects to the dock 32 , the USB OTG controller 321 reads the first log file stored in the first storage device 315 and then backs up files from the first storage device 315 to the second storage device 323 or the USB storage device 33 .
- the USB OTG controller 321 can store the backup data in different folders according to different data sources. For example, the dock 32 creates a first folder to store the backup data from a first portable device and creates a second folder to store the backup data from a second portable device.
- the USB OTG controller 32 first identifies the portable device 31 to select or create a corresponding folder to store the backup data.
- the dock 32 comprises a USB connector 325 for connecting the USB storage device 33 .
- the dock 32 can store the backup data to the second storage device 323 or the USB storage device 33 according to first log file. In another embodiment, when the second storage device 323 is full or does not exist, the dock 32 stores the backup data to the USB storage device 33 .
- the USB OTG controller 321 creates and stores a second log file to the first storage device 315 . Then, the USB OTC controller 321 transfers the control of the first storage device 315 back to the first controller 311 . This means that the first storage device 315 can be accessed by only the first controller 311 . The first controller 311 reads the second log file to know the backup status, such as backup fail, backup success or the backup date.
- the dock 32 can restore the backup data to the portable device 31 .
- the user first executes the first application 313 to select a restore date or the files to be restored, and then creates a third log file. For example, if a user wants to restore the pictures taken from Jan. 1, 2011 to Jan. 10, 2011, the user sets some parameters, such as the date and the data format information, via the first application program 43 to create the third log file.
- the USB OTG controller 321 reads the third log file and stores the selected files to the first storage device 315 .
- the user can restore files with a specific format.
- the user when the user wants to restore the pictures from the dock 32 to the portable device 31 , the user can create a restore log file via the first application program 313 .
- the first application program 313 can show a setting menu, such as shown in FIG. 4 c , for user.
- the user first sets a restore date and then selects the data type of the restored data.
- the user still can select specific format to be backed up or restored via the first application program 313 .
- the formats of photo comprise JPG format, JPEG format, BMP format and other formats, and the user can select only the photo with JPG format to be backed up or restored. All the setting of backup and restore will be transformed to data that can be read by the USB OTG controller 321 and stored in the log file.
- FIG. 5 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the present invention.
- the portable device 51 comprises a first controller 57 , a camera module 58 , a first application program 53 and a first storage device 54 , such as an SD card, CF card or flash memory.
- the first storage device 54 is external and inserted in the portable device 51 .
- the backup device 52 comprises a second storage device 55 and a controller 56 .
- the user When a user wants to backup and store files to the second storage device 55 , the user first uses the first application program 53 to select first files that have to be backed up and then the first application program 53 creates a log file 59 a according to the first files.
- the log file 59 a comprises the file names of the first files, formats of first files and a timestamp recording the backup date of the first files.
- the backup mechanism for the portable device 51 that has the same operating system as the backup device.
- the control of the first storage device 54 is first transferred to the second controller 56 , and then the second controller 46 reads the log file 59 a of the portable device 51 to know which files have to be backed up.
- the backup device 52 acquires and stores the first files to the second storage device 55 according to the log file 59 a.
- the second controller creates and stores a host log file 59 b in the portable device 51 .
- the host log file 59 a records the status of the backup procedure of the first files.
- the backup device 52 is disconnected from the portable device 51 , and the first controller 57 reads the host log file to know the backup status.
- the portable device 51 comprises a camera module 58 for taking photos.
- the photos taken by the camera module 58 also contain a timestamp. Therefore, the backup device 52 can automatically back up the photos according to the timestamp.
- a second application program (not shown in FIG. 5 ) automatically stores all the photos and pictures of the portable device 51 . Then, the second application program finds and records a latest date from the timestamps of the corresponding photos and pictures.
- the second application program finds photos or pictures that are not stored in the backup device 52 according to the latest date, and then stored the unstored photos or pictures in the second storage device 55 .
- a restored mechanism for the portable device 51 is also discussed in the following.
- the first application program 53 first creates a first log file containing the information of the second files that have to be restored to the portable device 51 .
- the second controller 56 reads the log file and restores the second files to the portable device 51 .
- the backup device 52 also creates and stores a host log file to the portable device 51 .
- a user can only select data between two dates to be restored from the backup device 52 to the portable device 51 . For example, if a user wants to restore the pictures taken from Jan. 1, 2011 to Jan. 10, 2011, the user can input some parameters, such as the date and the data format information, via the first application program 53 and then the first application program 53 creates the log file according to the user's choices. Furthermore, a user can select to backup files with some specific format to be backed up device 52 via the first application program 53 .
- the backup device 52 may also comprises the second application program for backing up the data of the portable device 51 or restoring the data from the backup device 52 to the portable device 51 .
- the backup device 52 may also comprises a dock for connecting a connector of the portable device. Wireless connection mechanisms, security mechanisms or synchronization mechanisms may also be applied to the portable device 51 and backup device 52 .
- FIG. 6 is a flowchart of a backup and re-store method according to another embodiment of the invention.
- an application program or a backup device is initialized.
- the backup device connects to a handheld device to back up data from the handheld device to the backup device or re-store data from the backup device to the handheld device.
- the initialization comprises a step of scanning the handheld device and the backup device to find storage type devices comprising both internal and external storage medium.
- user can select which data to be backed up or determines a recovery date to restore data via an input menu or interface.
- the handheld device creates and stores a first log file in a memory card or an external storage device of the handheld device.
- the memory card of the handheld device is mounted to the backup device. It means that the control of the memory card is transferred from the handheld device to the backup device. In other words, the user of the handheld device cannot access the memory card via the handheld device.
- the backup device reads the first log file, wherein the first log file contains the information of the files to be backed up or restored.
- the backup device duplicates the first log file and stored the duplicated first log file to a storage device of the backup device. After that, the control of the memory card is returned to the handheld device.
- the backup device compares the current files with the files to be backed up or restored to create a first file list showing only the files to be deleted or created.
- the memory card the handheld device is mounted to the backup device again.
- the backup device stores files or deletes files according to the file list. After that, the backup device returns the control of the memory card to the handheld device.
- the handheld device reads a second log file generated in the step S 66 to know the backup or re-store status.
- the first log file or the second log file comprises at least three parts: status list, command list and file list.
- the status list indicates result of the backup operation or the re-store operation.
- the command list is generated only by the handheld device to inform the backup device which operation is adopted.
- the file list is the key feature of the log file.
- the file list comprises file names of files to be backed up or deleted, directory of the files and a directory structure of the memory card.
- a backup program of the handheld device may directly records the current directory structure of the memory card or only the directory structure of the files related to the backup operation or re-store operation.
- the backup device compares the directory structure of the first log file with a current directory of the backup device to generate the first file list.
- the backup device compares the first log file with a previous log file that the handheld device generated to generate the firs log file.
- FIG. 7 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention.
- the portable device 71 comprises a first controller 711 , a first application program 713 and a first storage device 715 .
- the dock 72 comprises a USB OTG (On To Go) controller 721 , a buffer 727 , a second storage device 723 and a USB connector 725 for connecting a USB storage device 73 .
- the buffer 727 may be a memory device that is only controlled by the USB OTG controller 721 .
- the buffer 727 may be a random access memory (RAM).
- the buffer 727 may be embedded with the USB OTG controller 721 .
- the portable device 71 has a connector for connecting the dock 72 .
- the dock 72 has a first slot with a male connector and the portable device 71 has a female connector for connecting the male connector.
- the portable device 71 connects to the dock 72 via a connection cable.
- an authentication procedure may be applied to the portable device 71 by the USB OTG controller 721 .
- the control of the buffer 727 is transferred to the first controller 711 .
- the dock 72 is controlled by the portable device 71 .
- the first controller 711 when the portable device 71 wants to stores files or data to the dock 72 , the first controller 711 first transmits the files or data to the buffer 727 and then, the USB OTG controller 721 transmits and stores data or files stored in the buffer 727 to the second storage device 723 or the USB storage device 73 .
- the buffer 727 plays a role for exchanging data between the portable device 71 and the target destination device, such as the second storage device 723 or the USB storage device 73 .
- not all the data should be transmitted to the buffer 727 .
- only the command, request or instructions exchanged between the portable device 71 and the dock 72 have to be transmitted via the buffer 727 , and other data is directly transmitted between the dock 72 and the portable device 71 .
- the first storage device 715 may be a SD card or other kinds of memory cards.
- the first storage device 712 is inserted and mounted to the portable device 71 by user and stores user's personal data.
- the portable device 71 may comprises another storage device storing the necessary data for the operation of the portable device 71 , such as the operating system, application programs or hardware configuration data.
- the control of the first storage device 715 is transferred to the USB OTG controller 721 .
- the first storage device 315 can only be accessed by the USB OTG controller 721 and cannot be accessed by the first controller 711 .
- the first application program 713 is executed by the first controller 711 and user can select at least one file to be backed up to the dock 72 via the first application program 713 . After selecting files, the first application program 713 creates a first log file.
- the first application program 713 may show a setting menu for user to select files to be backed up.
- the first log file is transmitted to and stored in the buffer 727 , and the USB OTG controller 721 reads the first log file stored in the buffer 727 and then backs up files from the first storage device 715 to the second storage device 723 or the USB storage device 73 .
- the files that need to be backed up is first transmitted to the buffer 727 and then re-transmitted to the second storage device 723 .
- the detail backup mechanism can be referred to the description of FIG. 3 and not discussed here for briefly. In the previous paragraphs, the timestamp, the incremental backup mechanism and the structure of log file have been discussed and can be applied to this embodiment.
- the major technical feature of FIG. 7 is the buffer 727 , and the user can determine whether the data transmitted to the dock 72 or the portable device 71 has to be transmitted via the buffer 727 . In one embodiment, all the data transmitted between the dock 72 and the portable device 71 must be via the buffer 727 . In other embodiment, only the command, request or instructions exchanged between the portable device 71 and the dock 72 have to be transmitted via the buffer 727 . For the detail description, please refer to FIG. 8 .
- FIG. 8 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention.
- the portable device 81 comprises a processor 811 , a first application program 813 and a first storage device 815 .
- the first application program 813 is executed by the processor 811 and shows an option menu for a user to select files to be backed up or restored.
- the operation of the first application program 813 can be referred to FIG. 4 and corresponding description.
- the first storage device 815 is an internal storage device.
- the portable device 81 further comprises a slot, to which a memory card can be inserted in. The data stored in the first storage device 815 and the memory card can be backed up to the dock 82 .
- the first application 813 is executed by the processor 811 to create a first log file.
- the first log file is then transmitted to the buffer 822 via the first interface 824 .
- the USB OTG controller 821 then transmits the first log file from the buffer 822 to the second storage device 823 .
- the USB OTG controller 821 reads the first log files to know which files need to be backed up and which folder the files are to be stored in.
- the USB OTG controller 821 transmits an instruction or data to the processor 811 to informs the processor 811 that the data to be backed up should directly transmitted to the second storage device 823 or transmitted to the second storage device 823 via the buffer 822 .
- the user can determines the first files to be stored in the second storage device or the USB storage device 83 via the first application program 813 .
- the information of the USB storage device 83 is provided by the USB OTG controller 821 .
- the USB OTG controller 821 first transmits status information of the second storage device 823 and the USB storage device 83 .
- the status information comprises an original capacity of the second storage device 823 and the USB storage device 83 , the available capacity of the second storage device 823 and the USB storage device 83 and the name of the second storage device 823 and the USB storage device 83 .
- the portable device 81 comprises a first NFC (Near Field Communication) device and the dock 82 comprises a second NFC device.
- the status information is transmitted via the first NFC device and the second NFC device.
- the second NFC device of the dock 82 automatically transmits the status information to the first NFC device of the portable device 81 .
- the status information is then stored in the first storage device 815 and when the first application program 813 is executed, the first application program 813 reads the status information and shows on an option menu for the user. The user can selects the first files to be backed up and selects the folder or directory that the first files are stored in. Finally, the first log file is generated according to user's selection.
- the first interface 824 directs the first files to the buffer 822 or the second storage device 823 according to a select signal from the USB OTG controller 821 .
- the buffer 822 may be embedded inside the USB OTG controller 821 or the buffer 822 is accessed only by the USB OTG controller 821 .
- the USB OTG controller 821 can assign the buffer 822 to other device, such as the portable device 81 .
- the processor 811 Since the processor 811 knows the first files will be directly transmitted to the second storage device 823 or transmitted to the second storage device 823 via the 822 according to the instruction from the USB OTG controller 821 , the processor 811 adjusts the size of the first files according to the size of the buffer 822 .
- the processor 811 may compress the first files to generate a compressed file and the compressed file may be divided into a plurality of parts according to the size of the buffer 822 when the size of the compressed file is larger than the size of the buffer 822 . Each part of the compressed file is transmitted to the second storage device 823 , and then the USB OTG controller 821 combines the parts to generate the first files.
- the USB OTG controller 821 transmits the data stored in the buffer 822 to the second storage device 823 .
- the described operations will repeat until all the first files are stored in the second storage device 823 .
- the USB OTG controller 821 then generates a second log file indicating the backup status and the second log file is transmitted to and stored in the first storage device 815 via the selected transmission path. If the first files are directly transmitted to the second storage device 823 , the second log file is directly transmitted to the first storage device 815 . If the first files are transmitted to the second storage device 823 via the buffer 822 , the second log file is transmitted to the first storage device 815 via the buffer 822 .
- the dock 82 connects to a USB storage device 83 via a second interface 825 .
- the first interface 824 directs the first files to the buffer 822 or the second interface 825 according to the select signal from the USB OTG controller 821 .
- the USB OTG controller 821 After the backup operation, the USB OTG controller 821 generates the second log file indicating the backup status and the second log file is transmitted to and stored in the first storage device 815 via the selected transmission path.
- the following paragraphs discuss four relative examples according to FIG. 8 .
- the four examples contain the same key feature that at least the log file is transmitted via the buffer 822 .
- the control of the first storage device 815 is transferred to the USB OTG controller 821 .
- the first storage device 815 can only be accessed by the USB OTG controller 821 and cannot be accessed by the first controller 811 .
- the first log file created by the first application program 813 is stored in the first storage device 815 and is then transmitted to the second storage device 823 via the buffer 822 .
- the USB OTG controller 821 reads the first log file and retrieves corresponding to the first files that indicating by the first log file.
- the first log file is created by the first application program 813 .
- the USB OTG controller 821 retrieves the first files, the first files first transmitted to the first interface 824 and the USB OTG controller 821 controls the first interface 824 to direct the first files to the buffer 822 or to the second storage device 823 .
- the USB OTG controller 821 monitors the status of the buffer 822 to transmitted the data stored in the buffer 822 to second storage device 823 when the buffer 822 is full or the remaining capacity of the buffer 822 is less than a predetermined value.
- the first files are directly transmitted to the second storage device 823 .
- the first files are backed up to the USB storage device 83 , the first files are transmitted to the USB storage device 83 via the buffer 822 or a transmission path between the first interface 824 and the second interface 825 is created by the USB OTG controller 821 , so that the first files can be directly transmitted to the USB storage device 83 .
- the transmission path is created by the USB OTG controller 821 .
- the USB OTG controller 821 creates a second log file indicating the backup status of the first files.
- the second log file is transmitted to the first storage device 815 via the buffer 822 .
- the control of the first storage device 815 is returned back to the processor 811 .
- the processor 811 reads the second log file stored in the first storage device 815 to know the backup result.
- the processor 811 transmits the first log file to the dock 82 and waits a response from the USB OTG controller 821 .
- at least the first log file is transmitted to the second storage device 823 via the buffer 822 .
- the control of the first storage device 815 is not transferred to the USB OTG controller 821 .
- the USB OTG controller 821 receives the first log file, the USB OTG controller 821 determines whether the first files corresponding to the first log file are stored in the second storage 823 or the USB storage device 83 via the buffer 822 . In other words, the USB OTG controller 821 determines a transmission path between the first interface 824 and the second storage device 823 .
- the USB OTG controller 821 transmits the response to the processor 811 .
- the processor 811 receives the response, transmits the first files to the first interface 824 of the dock 82 .
- the first interface 824 directs the first files to buffer 822 or the second storage device 823 according to the control of the USB OTG controller 821 .
- the USB OTG controller 821 establishes other transmission path between the first interface 824 and the second interface 825 .
- the first interface 824 directs the first files to buffer 822 or the second interface 825 according to the control of the USB OTG controller 821 .
- the portable device 81 and the dock 82 operates independently.
- the processor 811 controls the transmission of the first files between the portable device 81 and the first interface 824
- the USB OTG controller 821 controls the transmission of the first files between the first interface 824 and the second storage device 823 or the USB storage device 83 .
- the USB OTG controller 821 creates a second log file indicating the backup status of the first files.
- the second log file is transmitted to the first storage device 815 via the buffer 822 .
- the processor 811 reads the second log file stored in the first storage device 815 to know the backup result.
- the user of the portable device 81 wants to restore second files from the dock 82 , the user selects the second files via the first application program 813 to create a third log file.
- the generation of the third log file can be referred to the previous paragraphs and not discussed here for briefly.
- the control of the first storage device 815 is transferred to the USB OTG controller 821 .
- the first storage device 815 can only be accessed by the USB OTG controller 821 and cannot be accessed by the first controller 811 .
- the third log file created by the first application program 813 is stored in the first storage device 815 and is then transmitted to the second storage device 823 via the buffer 822 .
- the USB OTG controller 821 reads the third log file and finds corresponding to the second files that indicating by the third log file.
- the USB OTG controller 821 determines a transmission path between the second storage device 823 and the first interface 824 .
- the second files may be directly transmitted from the second storage device 823 to the first interface 824 or transmitted from the second storage device 823 to the first interface 824 via the buffer 822 . If at least one second file is stored in the USB storage device 83 , the USB OTG controller 821 creates other transmission path between the first interface 824 and the second interface 825 .
- the USB OTG controller 821 transmits the second files via the selected transmission path to the first interface 824 and then the second files are transmitted to the first storage device 815 .
- the USB OTG controller 821 monitors the status of the buffer 822 to transmit the data stored in the buffer 822 to the first storage device 815 when the buffer 822 is full or the remaining capacity of the buffer 822 is less than a predetermined value.
- the USB OTG controller 821 creates a fourth log file indicating the restore status of the second files.
- the fourth log file is transmitted to the first storage device 815 via the buffer 822 .
- the control of the first storage device 815 is returned back to the processor 811 .
- the processor 811 reads the fourth log file stored in the first storage device 815 to know the restore result.
- the processor 811 transmits the third log file to the dock 82 and waits a response from the USB OTG controller 821 .
- the third log file is generated by the first application program and transmitted to the second storage device 823 via the buffer 822 . Noted that in this example, at least the third log file is transmitted to the second storage device 823 via the buffer 822 . In this example, the control of the first storage device 815 is not transferred to the USB OTG controller 821 .
- the USB OTG controller 821 reads the third log file and finds corresponding to the second files that indicating by the third log file. The USB OTG controller 821 then determines a transmission path between the second storage device 823 and the first interface 824 .
- the second files may be directly transmitted from the second storage device 823 to the first interface 824 or transmitted from the second storage device 823 to the first interface 824 via the buffer 822 . If at least one second file is stored in the USB storage device 83 , the USB OTG controller 821 creates other transmission path between the first interface 824 and the second interface 825 .
- the USB OTG controller 821 transmits the second files via the selected transmission path to the first interface 824 and then the second files are transmitted to the first storage device 815 via the first interface 824 .
- the USB OTG controller 821 monitors the status of the buffer 822 to transmit the data stored in the buffer 822 to the first storage device 815 when the buffer 822 is full or the remaining capacity of the buffer 822 is less than a predetermined value.
- the portable device 81 and the dock 82 operates independently.
- the processor 811 controls the transmission of the second files between the portable device 81 and the first interface 824
- the USB OTG controller 821 controls the transmission of the second files between the first interface 824 and the second storage device 823 or the USB storage device 83 .
- the USB OTG controller 821 creates a fourth log file indicating the restore status of the second files.
- the fourth log file is transmitted to the first storage device 815 via the buffer 822 .
- the processor 811 reads the fourth log file stored in the first storage device 815 to know the restore result.
- FIG. 9 a flowchart of a backup method according to another embodiment of the invention.
- an application program is executed to select at least one file to be backed up in a dock to generate a first log file.
- the generation log file can be referred to the description of FIGS. 3 , 4 a , 4 b and 4 c .
- the dock acquires an operating mode to select a transmission path.
- the operating mode can be determined by a controller of the dock according to the operating status of the dock.
- the operating mode can be switched via a physical switch by a user.
- the operating mode determines whether the data transmitted to the dock or from the dock has to be transmitted via a buffer that is controlled by a controller of the dock.
- the dock After acquiring the operating mode, the dock selects a corresponding transmission path.
- the first log file is transmitted to a second storage device of the dock via the buffer. Noted that the first log file must be transmitted to the second storage device via the buffer.
- the file is transmitted from a first storage device to the second storage device for backup.
- a second log file indicating a backup status is generated by the controller of the dock in the step S 95 .
- the second log file is transmitted to the portable device via the selected transmission path and a processor of the portable device reads the second log file to know the backup status.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
An embodiment of the invention provides a backup method for a portable device. The method includes steps of: creating a first log file according to a first file that has to be stored in a backup device; connecting the portable device to the backup device; transmitting the first log file to the backup device; reading the first log file, by the backup device, and storing the first file to a storage device of the backup device; wherein the first log file is transmitted to the storage device via a buffer that is controlled by a controller of the backup device.
Description
- This application is a Continuation-In-Part of application Ser. No. 13/302,788, filed Nov. 22, 2011, which claims the benefit of provisional Application No. 61/435,631, filed on Jan. 24, 2011, the entirety of which is/are incorporated by reference herein.
- 1. Field of the Invention
- The present invention relates to a backup method, and in particular relates to a backup method for a portable device.
- 2. Description of the Related Art
- With the growth of the usage of the portable device, a problem has been raised, the backing up of data of the portable device. One solution is to connect the portable device to a computer or data storage device and store data therein. However, this solution may require some driver or specific software for the computer to retrieve and backs up data of the portable device and it is not convenient for a user. If the computer does not install the corresponding application program or driver, the computer cannot access the portable device even to back up data of the portable device.
- An embodiment of the invention provides a backup method for a portable device. The method comprises steps of: creating a first log file according to a first file that has to be stored in a backup device; connecting the portable device to the backup device; transmitting the first log file to the backup device; reading the first log file, by the backup device, and storing the first file to a storage device of the backup device; wherein the first log file is transmitted to the storage device via a buffer that is controlled by a controller of the backup device.
- Another embodiment of the invention provides a dock for storing data of a portable device. The dock comprises a first storage device, a buffer coupled to the first storage device, and a controller. The controller detects whether the portable device connects to the dock, and when the portable device connects to the dock, a first log file is transmitted to the first storage device via the buffer. The controller then reads the first log file to store a first file from the portable device, and the controller creates a second log file indicating a backup status of the first file.
- A detailed description is given in the following embodiments with reference to the accompanying drawings.
- The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
-
FIG. 1 is a schematic diagram of a backup mechanism for a portable device according to an embodiment of the invention. -
FIG. 2 is a flowchart of a backup method according to an embodiment of the invention. -
FIG. 3 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention. -
FIG. 4 a shows a backup setting menu according to an embodiment of the invention. -
FIG. 4 b shows a customized backup setting menu according to an embodiment of the invention. -
FIG. 4 c shows a re-store setting menu according to an embodiment of the invention. -
FIG. 5 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the present invention. -
FIG. 6 is a flowchart of a backup and re-store method according to another embodiment of the invention. -
FIG. 7 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention. -
FIG. 8 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention. -
FIG. 9 a flowchart of a backup method according to another embodiment of the invention. - The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
-
FIG. 1 is a schematic diagram of an embodiment of a backup mechanism for a portable device according to an embodiment of the present innovation. Theportable device 11 comprises afirst application program 13 and astorage device 14, such as an SD card, CF card or flash memory. Thebackup device 12 comprises ahost storage 15 and acontroller 16. When a user wants to backup files stored in thestorage device 14, the user uses thefirst application program 13 to select and mark files to be backed up and thefirst application program 13 outputs a log file indicating which files have to be backed up. When thebackup device 12 is electrically connected to theportable device 11, thebackup device 12 reads the log file of theportable device 11 to know which files have to be backed up. Thebackup device 12 may directly read the log file stored in thestorage device 14 and the log file would be reserved in thestorage device 14. In another embodiment, thebackup device 12 retrieves and stores the log file in the backup device, and the original log file stored in the will be deleted by thebackup device 12. Then, thebackup device 12 acquires and stores the files to be backed up in thehost storage 15. When thebackup device 12 is connected to theportable device 11, the control of thestorage device 14 is transferred to thecontroller 16 of thebackup device 12. After thebackup device 12 finishes storing the file, thebackup device 12 creates and stores a host log file in thestorage device 14. The host log file records the file storage status. Finally, thebackup device 12 is disconnected from theportable device 11, and thefirst application program 13 reads the host log file to know a backup result. The host log file may be temporality or permanently stored in thestorage device 14. For example, the host log file may be deleted after thefirst application program 13 reads it for the security concern. - The present data backup procedure mainly comprises three parts. First, before the
portable device 11 is connected to thebackup device 12, thefirst application program 13 is executed to select and mark files to be backed up by a user. Thefirst application program 13 then creates and stores a log file. The log file contains the information of the files to be backed up. The information may comprise file names of the file to be backed up. - Second, when the
portable device 11 is connected to thebackup device 12, the control of thestorage device 14 is transferred to thebackup device 12. In other word, theportable device 11 can operate as a peripheral device of thebackup device 12. Thebackup device 12 reads the log file and stores the files to be backed up to thehost storage 15. After storage, thebackup device 12 creates and stores a host log file in thestorage device 14, and breaks down the connection to theportable device 12. - Third, the
first application program 13 is executed and reads the host log file to know the status of the backup. - In the present embodiment, the log file may not only record the information of the files to be backed up, but also a destination folder or path that indicates the destination folder.
- In another embodiment, the log file contains a timestamp and the
backup device 12 also stores the log file from theportable device 11. When thebackup device 12 accesses the log file from theportable device 11, thebackup device 12 also reads a previous log file stored in thebackup device 12, and thebackup device 12 only stores the unstored files according to the log file and the previous log file. Thebackup device 12 comprises a first log file database storing the log files from theportable device 12, and theportable device 11 comprises a second log file data storing the host log files created by thebackup device 12. Each time theportable device 11 backs up the data or files to thebackup device 12, thefirst application program 13 or thebackup device 12 can find a previous host log file or a previous log file to determine which files are new for backup. The described backup mechanism also can be applied to the restore function. - The host log file also contains a timestamp, and when the
first application program 13 creates the log file, thefirst application program 13 will check a previous host log file to see whether the current selected files have been stored in thebackup device 12. If yes, the current log file will exclude the stored files from the current log file. It is noted that, if the destination folder of the destination path of the previously stored files is different from the current destination folder of the destination path, the stored files will be stored in the current destination folder of the destination path. - The described paragraphs are focused on the backup mechanism for the
portable device 11. Another embodiment of the restored mechanism for theportable device 11 is discussed in the following. When a user wants to restore some files from thebackup device 12 to theportable device 11, thefirst application program 13 creates a first log file indicating which files have to be restored to theportable device 11. When thebackup device 12 is connected to theportable device 11, thecontroller 16 reads the first log file and restores the requested files to theportable device 11. After restoration, thebackup device 12 also creates and stores a first host log file to thestorage device 14. - Via the
first application program 13, a user can set data between two dates to be restored from thebackup device 12 to theportable device 11. For example, if a user wants to restore the pictures taken from Jan. 1, 2011 to Jan. 10, 2011, the user can input some parameters, such as date and data type information, via thefirst application program 13 and then the first application program searches matched files stored in the portable device and creates the log file according to the user's inputs. Furthermore, the user can set which type of files to be backed up via the first application program. Similarly, this can also be applied to the restore mechanism. In this embodiment, the type of the file means the file format, such as JPG, JPEG, RAM file format, audio file format, video file format or other formats. - In the present embodiment, the
backup device 12 may also comprise a second application program for backing up the data of theportable device 11 or restoring the data from thebackup device 12 to the portable device. Thebackup device 12 may also comprise a dock for connecting a connector of theportable device 11. Wireless connection mechanisms, security mechanisms or synchronization mechanisms may also be applied to theportable device 11 andbackup device 12. - In the previous description, the embodiment is illustrated with wired or physical connection between the
portable device 11 and the backup device. However, the invention is not limited thereto. The described backup mechanism can also be applied in the situation that the portable device wirelessly connects the backup device. Thebackup device 12 can communicate with theportable device 11 via wireless interface, such as Wifi, WiMax, Bluetooth, IrDa, NFC (Near Field Communication) or other wireless interfaces. When a distance between theportable device 11 and thebackup device 12 is shorter than a predetermined distance, thebackup device 12 automatically wirelessly connects to the portable device and theportable device 11 transfers the control of thestorage device 14 to thebackup device 12. Although theportable device 11 is connected to thebackup device 12 actually, thebackup device 12 only sees thestorage device 14 in the aspect view of thebackup device 12. Simply speaking, thebackup device 12 is virtually connected to thestorage device 14 but actually connected to the portable device. After the virtual connection between thestorage device 14 and thebackup device 12 is established, the control of thestorage device 14 is transferred to thebackup device 12. It means that the user of theportable device 11 cannot see thestorage device 14. When thebackup device 12 accesses thestorage device 14, the command, request, or data to thestorage device 14 is still transferred by a processor or a control unit of theportable device 11. Thebackup device 12 then reads the log file stored in thestorage device 14 and backs up the files in thebackup device 12. After backing up, the backup device breaks down the wireless connection to theportable device 11 and the control of thestorage device 14 is returned to theportable device 11. Furthermore, when thestorage device 14 is virtually connected to thebackup device 12, a synchronization application program can be executed to directly synchronize and back up the data of theportable device 11 and via the wireless connection, thebackup device 12 can simultaneously connects to more than one portable device or other computing device to back up the data therein when the wireless connection has been established. -
FIG. 2 is a flowchart of a backup method according to an embodiment of the present embodiment. In step S21, the portable device receives inputs to select and mark the files to be backed up. A user can input parameters via a touch panel or keypad of the portable device to select files to be backed up. Furthermore, voice control may also be applied. In step S22, a first application program of the portable device creates a log file according to user inputs. In step S23, the backup device mounts the portable device, and the control of thestorage device 14 is then transferred to the backup device. The backup device reads the log file and stores the files from the portable device to the backup device according to the log file. In step S24, when the backup device finishes storing data, the backup device creates and stores a host log file in the portable device. In step S25, the backup device dis-mounts the portable device. In step S26, the portable device reads the host log file to check the status of the backed up file. -
FIG. 3 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention. Theportable device 31 comprises afirst controller 311, afirst application program 313 and afirst storage device 315. Thedock 32 comprises a USB OTG (On To Go)controller 321, asecond storage device 323 and a USB connector for connecting aUSB storage device 33. Theportable device 31 has a connector for connecting thedock 32. In another embodiment, thedock 32 has a first slot with a male connector and theportable device 31 has a female connector for connecting the male connector. In another embodiment, theportable device 31 connects to thedock 32 via a connection cable. Thefirst storage device 315 may be a SD card or other kinds of memory cards. The first storage device 312 is inserted and mounted to theportable device 31 by user and stores user's personal data. Theportable device 31 may comprises another storage device storing the necessary data for the operation of theportable device 31, such as the operating system, application programs or hardware configuration data. - When the
portable device 31 connects to thedock 32, the control of the first storage device is transferred to theUSB OTG controller 321. In other words, thefirst storage device 315 can only be accessed by theUSB OTG controller 321 and cannot be accessed by thefirst controller 311. Thefirst application program 313 is executed by thefirst controller 311 and user can select at least one file to be backed up to thedock 32 via thefirst application program 313. After selecting files, thefirst application program 313 creates a first log files. Thefirst application program 313 may show a setting menu for user to select files to be backed up. - Please refer to
FIG. 4 a.FIG. 4 a shows a backup setting menu according to an embodiment of the invention. Thebackup setting menu 41 comprises option fields 42 to 46. When theoption field 42 is selected, all the photo file or image file of theportable device 31 would be backed up to thedock 32. When theoption field 43 is selected, all the video files of theportable device 31 would be backed up to thedock 32. When theoption field 44 is selected, all the audio files of theportable device 31 would be backed up to thedock 32. When theoption field 45 is selected, all the document files of theportable device 31 would be backed up to thedock 32. When theoption field 46 is selected, anotheroption menu 48 pops out. Theoption menu 48 contains file names of all files of theportable device 31 and the user can select files to be backed up via theoption menu 48. After selecting, thefirst application program 313 creates a log file for thedock 32 to back up files. The backup setting menu further comprises an option field (not shown inFIG. 4 a) to back up the contact list of the portable device. The contact list does not limit to the phone contact list, and the contact list related to a social network service can also be backed up to the backup device. - In another embodiment, the
backup setting menu 41 comprises a destination folder setting option and a synchronization option. The user can set a specific folder for storing the backup data from theportable device 31 via the destination folder setting option and creates another folder for synchronizing a designated folder of theportable device 31. If the user has set synchronization option, thedock 32 will automatically synchronize theportable device 31 and store the modified, changed or newly added file in the designated folder when theportable device 31 connects to thedock 32. - It is noted that the
first application program 313 can be executed at anytime base on the need of the user. The user can first executes thefirst application program 313 to create the first log file and then connects theportable device 31 to thedock 32. In another example, the user can directly connect theportable device 31 to thedock 32 and after thefirst controller 311 detects that theportable device 31 has been connected to thedock 32, thefirst application program 313 is then automatically executed. - The first log file contains the information of the files to be backed up. The information may comprise file names of the files to be backed up. The log file may not only record the information of the files to be backed up, but also a destination folder or path indicating the destination folder that the files to be backed up. In another embodiment, the log file contains a timestamp and the
USB OTG controller 321 backs up data of theportable device 31 only according to the file creation date. For example, thedock 32 has backed up the data of theportable device 31 on Jan. 1, 2011, and when the user connects theportable device 31 to thedock 32 on Jan. 11, 2011, thedock 32 only backs up the data generated, changed or modified between Jan. 1, 2011 and Jan. 11, 2011 in theportable device 31. In other words, an incremental backup mechanism is applied in thedock 32. - The incremental backup preserves data by not creating multiple copies that are based on the differences in those data: a successive copy of the data contains only that portion which has changed since the preceding copy has been created. The most basic form of incremental backup involves only those files that have changed since the last backup. Since changes are typically low, incremental backups are much smaller and quicker than full backups.
- After the
portable device 31 connects to thedock 32, theUSB OTG controller 321 reads the first log file stored in thefirst storage device 315 and then backs up files from thefirst storage device 315 to thesecond storage device 323 or theUSB storage device 33. TheUSB OTG controller 321 can store the backup data in different folders according to different data sources. For example, thedock 32 creates a first folder to store the backup data from a first portable device and creates a second folder to store the backup data from a second portable device. When theportable device 31 connects to thedock 32, theUSB OTG controller 32 first identifies theportable device 31 to select or create a corresponding folder to store the backup data. Thedock 32 comprises aUSB connector 325 for connecting theUSB storage device 33. Thedock 32 can store the backup data to thesecond storage device 323 or theUSB storage device 33 according to first log file. In another embodiment, when thesecond storage device 323 is full or does not exist, thedock 32 stores the backup data to theUSB storage device 33. - After the
dock 32 stores the backup data, theUSB OTG controller 321 creates and stores a second log file to thefirst storage device 315. Then, theUSB OTC controller 321 transfers the control of thefirst storage device 315 back to thefirst controller 311. This means that thefirst storage device 315 can be accessed by only thefirst controller 311. Thefirst controller 311 reads the second log file to know the backup status, such as backup fail, backup success or the backup date. - In this embodiment, the
dock 32 can restore the backup data to theportable device 31. The user first executes thefirst application 313 to select a restore date or the files to be restored, and then creates a third log file. For example, if a user wants to restore the pictures taken from Jan. 1, 2011 to Jan. 10, 2011, the user sets some parameters, such as the date and the data format information, via thefirst application program 43 to create the third log file. When the portable device connects to thedock 32, theUSB OTG controller 321 reads the third log file and stores the selected files to thefirst storage device 315. In another embodiment, the user can restore files with a specific format. For example, when the user wants to restore the pictures from thedock 32 to theportable device 31, the user can create a restore log file via thefirst application program 313. Thefirst application program 313 can show a setting menu, such as shown inFIG. 4 c, for user. The user first sets a restore date and then selects the data type of the restored data. - Although the described paragraphs illustrate the backup or restore mechanism with four data types, the user still can select specific format to be backed up or restored via the
first application program 313. For example, the formats of photo comprise JPG format, JPEG format, BMP format and other formats, and the user can select only the photo with JPG format to be backed up or restored. All the setting of backup and restore will be transformed to data that can be read by theUSB OTG controller 321 and stored in the log file. -
FIG. 5 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the present invention. Theportable device 51 comprises a first controller 57, acamera module 58, afirst application program 53 and afirst storage device 54, such as an SD card, CF card or flash memory. In another embodiment, thefirst storage device 54 is external and inserted in theportable device 51. - The
backup device 52 comprises asecond storage device 55 and acontroller 56. When a user wants to backup and store files to thesecond storage device 55, the user first uses thefirst application program 53 to select first files that have to be backed up and then thefirst application program 53 creates alog file 59 a according to the first files. Thelog file 59 a comprises the file names of the first files, formats of first files and a timestamp recording the backup date of the first files. - The following paragraphs are focused on the backup mechanism for the
portable device 51 that has the same operating system as the backup device. When thebackup device 52 is electrically connected to theportable device 51, the control of thefirst storage device 54 is first transferred to thesecond controller 56, and then thesecond controller 46 reads thelog file 59 a of theportable device 51 to know which files have to be backed up. Thebackup device 52 acquires and stores the first files to thesecond storage device 55 according to thelog file 59 a. After the first files are stored in thesecond storage device 55, the second controller creates and stores ahost log file 59 b in theportable device 51. Thehost log file 59 a records the status of the backup procedure of the first files. Finally, thebackup device 52 is disconnected from theportable device 51, and the first controller 57 reads the host log file to know the backup status. - In
FIG. 5 , theportable device 51 comprises acamera module 58 for taking photos. The photos taken by thecamera module 58 also contain a timestamp. Therefore, thebackup device 52 can automatically back up the photos according to the timestamp. For example, when theportable device 51 connects to thebackup device 52 for a first time, a second application program (not shown inFIG. 5 ) automatically stores all the photos and pictures of theportable device 51. Then, the second application program finds and records a latest date from the timestamps of the corresponding photos and pictures. When theportable device 51 connects to thebackup device 52 again, the second application program finds photos or pictures that are not stored in thebackup device 52 according to the latest date, and then stored the unstored photos or pictures in thesecond storage device 55. - A restored mechanism for the
portable device 51 is also discussed in the following. When a user wants to restore second files from thebackup device 52 to theportable device 51, thefirst application program 53 first creates a first log file containing the information of the second files that have to be restored to theportable device 51. When thebackup device 52 is connected to theportable device 51, thesecond controller 56 reads the log file and restores the second files to theportable device 51. After restoration, thebackup device 52 also creates and stores a host log file to theportable device 51. - Via the first application program 57, a user can only select data between two dates to be restored from the
backup device 52 to theportable device 51. For example, if a user wants to restore the pictures taken from Jan. 1, 2011 to Jan. 10, 2011, the user can input some parameters, such as the date and the data format information, via thefirst application program 53 and then thefirst application program 53 creates the log file according to the user's choices. Furthermore, a user can select to backup files with some specific format to be backed updevice 52 via thefirst application program 53. - In the present embodiment, the
backup device 52 may also comprises the second application program for backing up the data of theportable device 51 or restoring the data from thebackup device 52 to theportable device 51. Thebackup device 52 may also comprises a dock for connecting a connector of the portable device. Wireless connection mechanisms, security mechanisms or synchronization mechanisms may also be applied to theportable device 51 andbackup device 52. -
FIG. 6 is a flowchart of a backup and re-store method according to another embodiment of the invention. In step S61, an application program or a backup device is initialized. The backup device connects to a handheld device to back up data from the handheld device to the backup device or re-store data from the backup device to the handheld device. The initialization comprises a step of scanning the handheld device and the backup device to find storage type devices comprising both internal and external storage medium. Before or during the initialization, user can select which data to be backed up or determines a recovery date to restore data via an input menu or interface. Then, the handheld device creates and stores a first log file in a memory card or an external storage device of the handheld device. In the step S62, the memory card of the handheld device is mounted to the backup device. It means that the control of the memory card is transferred from the handheld device to the backup device. In other words, the user of the handheld device cannot access the memory card via the handheld device. - In the step S63, the backup device reads the first log file, wherein the first log file contains the information of the files to be backed up or restored. In another embodiment, the backup device duplicates the first log file and stored the duplicated first log file to a storage device of the backup device. After that, the control of the memory card is returned to the handheld device. In step S64, the backup device compares the current files with the files to be backed up or restored to create a first file list showing only the files to be deleted or created. In the step S65, the memory card the handheld device is mounted to the backup device again. In the step S66, the backup device stores files or deletes files according to the file list. After that, the backup device returns the control of the memory card to the handheld device. In step S67, the handheld device reads a second log file generated in the step S66 to know the backup or re-store status.
- The first log file or the second log file comprises at least three parts: status list, command list and file list. The status list indicates result of the backup operation or the re-store operation. The command list is generated only by the handheld device to inform the backup device which operation is adopted. The file list is the key feature of the log file. The file list comprises file names of files to be backed up or deleted, directory of the files and a directory structure of the memory card. When generating the first log file, a backup program of the handheld device may directly records the current directory structure of the memory card or only the directory structure of the files related to the backup operation or re-store operation. The backup device then compares the directory structure of the first log file with a current directory of the backup device to generate the first file list. In another embodiment, the backup device compares the first log file with a previous log file that the handheld device generated to generate the firs log file.
-
FIG. 7 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention. Theportable device 71 comprises afirst controller 711, afirst application program 713 and afirst storage device 715. Thedock 72 comprises a USB OTG (On To Go)controller 721, abuffer 727, asecond storage device 723 and aUSB connector 725 for connecting aUSB storage device 73. In this embodiment, thebuffer 727 may be a memory device that is only controlled by theUSB OTG controller 721. In this embodiment, thebuffer 727 may be a random access memory (RAM). In other embodiment, thebuffer 727 may be embedded with theUSB OTG controller 721. - The
portable device 71 has a connector for connecting thedock 72. In another embodiment, thedock 72 has a first slot with a male connector and theportable device 71 has a female connector for connecting the male connector. In another embodiment, theportable device 71 connects to thedock 72 via a connection cable. - When the
portable device 71 connects to thedock 72, an authentication procedure may be applied to theportable device 71 by theUSB OTG controller 721. When theportable device 71 is authenticated or confirmed by theUSB OTG controller 721, the control of thebuffer 727 is transferred to thefirst controller 711. In this case, thedock 72 is controlled by theportable device 71. - In one embodiment, when the
portable device 71 wants to stores files or data to thedock 72, thefirst controller 711 first transmits the files or data to thebuffer 727 and then, theUSB OTG controller 721 transmits and stores data or files stored in thebuffer 727 to thesecond storage device 723 or theUSB storage device 73. It is clear that thebuffer 727 plays a role for exchanging data between theportable device 71 and the target destination device, such as thesecond storage device 723 or theUSB storage device 73. However, not all the data should be transmitted to thebuffer 727. In one embodiment, only the command, request or instructions exchanged between theportable device 71 and thedock 72 have to be transmitted via thebuffer 727, and other data is directly transmitted between thedock 72 and theportable device 71. - The
first storage device 715 may be a SD card or other kinds of memory cards. The first storage device 712 is inserted and mounted to theportable device 71 by user and stores user's personal data. Theportable device 71 may comprises another storage device storing the necessary data for the operation of theportable device 71, such as the operating system, application programs or hardware configuration data. - In other embodiment, when the
portable device 71 connects to thedock 72, the control of thefirst storage device 715 is transferred to theUSB OTG controller 721. In other words, thefirst storage device 315 can only be accessed by theUSB OTG controller 721 and cannot be accessed by thefirst controller 711. Thefirst application program 713 is executed by thefirst controller 711 and user can select at least one file to be backed up to thedock 72 via thefirst application program 713. After selecting files, thefirst application program 713 creates a first log file. Thefirst application program 713 may show a setting menu for user to select files to be backed up. - After the first log file is created, the first log file is transmitted to and stored in the
buffer 727, and theUSB OTG controller 721 reads the first log file stored in thebuffer 727 and then backs up files from thefirst storage device 715 to thesecond storage device 723 or theUSB storage device 73. The files that need to be backed up is first transmitted to thebuffer 727 and then re-transmitted to thesecond storage device 723. - The detail backup mechanism can be referred to the description of
FIG. 3 and not discussed here for briefly. In the previous paragraphs, the timestamp, the incremental backup mechanism and the structure of log file have been discussed and can be applied to this embodiment. The major technical feature ofFIG. 7 is thebuffer 727, and the user can determine whether the data transmitted to thedock 72 or theportable device 71 has to be transmitted via thebuffer 727. In one embodiment, all the data transmitted between thedock 72 and theportable device 71 must be via thebuffer 727. In other embodiment, only the command, request or instructions exchanged between theportable device 71 and thedock 72 have to be transmitted via thebuffer 727. For the detail description, please refer toFIG. 8 . -
FIG. 8 is a schematic diagram of a backup mechanism for a portable device according to another embodiment of the invention. Theportable device 81 comprises aprocessor 811, afirst application program 813 and afirst storage device 815. Thefirst application program 813 is executed by theprocessor 811 and shows an option menu for a user to select files to be backed up or restored. The operation of thefirst application program 813 can be referred toFIG. 4 and corresponding description. Thefirst storage device 815 is an internal storage device. Theportable device 81 further comprises a slot, to which a memory card can be inserted in. The data stored in thefirst storage device 815 and the memory card can be backed up to thedock 82. - When a user wants to back up first files to the
dock 82, thefirst application 813 is executed by theprocessor 811 to create a first log file. The first log file is then transmitted to thebuffer 822 via thefirst interface 824. TheUSB OTG controller 821 then transmits the first log file from thebuffer 822 to thesecond storage device 823. TheUSB OTG controller 821 reads the first log files to know which files need to be backed up and which folder the files are to be stored in. In one embodiment, theUSB OTG controller 821 transmits an instruction or data to theprocessor 811 to informs theprocessor 811 that the data to be backed up should directly transmitted to thesecond storage device 823 or transmitted to thesecond storage device 823 via thebuffer 822. - The user can determines the first files to be stored in the second storage device or the
USB storage device 83 via thefirst application program 813. The information of theUSB storage device 83 is provided by theUSB OTG controller 821. When theportable device 81 connects to thedock 82 via a wired connection or a wireless connection, theUSB OTG controller 821 first transmits status information of thesecond storage device 823 and theUSB storage device 83. - The status information comprises an original capacity of the
second storage device 823 and theUSB storage device 83, the available capacity of thesecond storage device 823 and theUSB storage device 83 and the name of thesecond storage device 823 and theUSB storage device 83. In one embodiment, theportable device 81 comprises a first NFC (Near Field Communication) device and thedock 82 comprises a second NFC device. The status information is transmitted via the first NFC device and the second NFC device. When theportable device 81 approaches to thedock 82, the second NFC device of thedock 82 automatically transmits the status information to the first NFC device of theportable device 81. The status information is then stored in thefirst storage device 815 and when thefirst application program 813 is executed, thefirst application program 813 reads the status information and shows on an option menu for the user. The user can selects the first files to be backed up and selects the folder or directory that the first files are stored in. Finally, the first log file is generated according to user's selection. - When the
portable device 81 transmits first files to thedock 82, thefirst interface 824 directs the first files to thebuffer 822 or thesecond storage device 823 according to a select signal from theUSB OTG controller 821. In the embodiment, thebuffer 822 may be embedded inside theUSB OTG controller 821 or thebuffer 822 is accessed only by theUSB OTG controller 821. TheUSB OTG controller 821 can assign thebuffer 822 to other device, such as theportable device 81. - Since the
processor 811 knows the first files will be directly transmitted to thesecond storage device 823 or transmitted to thesecond storage device 823 via the 822 according to the instruction from theUSB OTG controller 821, theprocessor 811 adjusts the size of the first files according to the size of thebuffer 822. In one embodiment, theprocessor 811 may compress the first files to generate a compressed file and the compressed file may be divided into a plurality of parts according to the size of thebuffer 822 when the size of the compressed file is larger than the size of thebuffer 822. Each part of the compressed file is transmitted to thesecond storage device 823, and then theUSB OTG controller 821 combines the parts to generate the first files. - When the
buffer 822 is full, theUSB OTG controller 821 transmits the data stored in thebuffer 822 to thesecond storage device 823. The described operations will repeat until all the first files are stored in thesecond storage device 823. TheUSB OTG controller 821 then generates a second log file indicating the backup status and the second log file is transmitted to and stored in thefirst storage device 815 via the selected transmission path. If the first files are directly transmitted to thesecond storage device 823, the second log file is directly transmitted to thefirst storage device 815. If the first files are transmitted to thesecond storage device 823 via thebuffer 822, the second log file is transmitted to thefirst storage device 815 via thebuffer 822. - The
dock 82 connects to aUSB storage device 83 via asecond interface 825. When the first files are decided to be stored in theUSB storage device 83, thefirst interface 824 directs the first files to thebuffer 822 or thesecond interface 825 according to the select signal from theUSB OTG controller 821. After the backup operation, theUSB OTG controller 821 generates the second log file indicating the backup status and the second log file is transmitted to and stored in thefirst storage device 815 via the selected transmission path. - The following paragraphs discuss four relative examples according to
FIG. 8 . The four examples contain the same key feature that at least the log file is transmitted via thebuffer 822. - When the
portable device 81 connects to thedock 82, the control of thefirst storage device 815 is transferred to theUSB OTG controller 821. In other words, thefirst storage device 815 can only be accessed by theUSB OTG controller 821 and cannot be accessed by thefirst controller 811. The first log file created by thefirst application program 813 is stored in thefirst storage device 815 and is then transmitted to thesecond storage device 823 via thebuffer 822. TheUSB OTG controller 821 reads the first log file and retrieves corresponding to the first files that indicating by the first log file. The first log file is created by thefirst application program 813. - When the
USB OTG controller 821 retrieves the first files, the first files first transmitted to thefirst interface 824 and theUSB OTG controller 821 controls thefirst interface 824 to direct the first files to thebuffer 822 or to thesecond storage device 823. When the first files are directed to thebuffer 822, theUSB OTG controller 821 monitors the status of thebuffer 822 to transmitted the data stored in thebuffer 822 tosecond storage device 823 when thebuffer 822 is full or the remaining capacity of thebuffer 822 is less than a predetermined value. In other example, the first files are directly transmitted to thesecond storage device 823. If the first files are backed up to theUSB storage device 83, the first files are transmitted to theUSB storage device 83 via thebuffer 822 or a transmission path between thefirst interface 824 and thesecond interface 825 is created by theUSB OTG controller 821, so that the first files can be directly transmitted to theUSB storage device 83. The transmission path is created by theUSB OTG controller 821. - After the backup operation, the
USB OTG controller 821 creates a second log file indicating the backup status of the first files. The second log file is transmitted to thefirst storage device 815 via thebuffer 822. When theportable device 81 disconnects from thedock 82 or the backup operation is completed, the control of thefirst storage device 815 is returned back to theprocessor 811. Theprocessor 811 reads the second log file stored in thefirst storage device 815 to know the backup result. - When the
portable device 81 connects to thedock 82, theprocessor 811 transmits the first log file to thedock 82 and waits a response from theUSB OTG controller 821. In this example, at least the first log file is transmitted to thesecond storage device 823 via thebuffer 822. The control of thefirst storage device 815 is not transferred to theUSB OTG controller 821. When theUSB OTG controller 821 receives the first log file, theUSB OTG controller 821 determines whether the first files corresponding to the first log file are stored in thesecond storage 823 or theUSB storage device 83 via thebuffer 822. In other words, theUSB OTG controller 821 determines a transmission path between thefirst interface 824 and thesecond storage device 823. When the transmission path is determined, theUSB OTG controller 821 transmits the response to theprocessor 811. Whenprocessor 811 receives the response, theprocessor 811 transmits the first files to thefirst interface 824 of thedock 82. Thefirst interface 824 directs the first files to buffer 822 or thesecond storage device 823 according to the control of theUSB OTG controller 821. - In other example, when the first files are backed up to the
USB storage device 83, theUSB OTG controller 821 establishes other transmission path between thefirst interface 824 and thesecond interface 825. When the first interface receives 824 receives the first files, thefirst interface 824 directs the first files to buffer 822 or thesecond interface 825 according to the control of theUSB OTG controller 821. - In the second example, the
portable device 81 and thedock 82 operates independently. In other words, theprocessor 811 controls the transmission of the first files between theportable device 81 and thefirst interface 824, and theUSB OTG controller 821 controls the transmission of the first files between thefirst interface 824 and thesecond storage device 823 or theUSB storage device 83. - After the backup operation, the
USB OTG controller 821 creates a second log file indicating the backup status of the first files. The second log file is transmitted to thefirst storage device 815 via thebuffer 822. When theportable device 81 disconnects from thedock 82 or the backup operation is completed, theprocessor 811 reads the second log file stored in thefirst storage device 815 to know the backup result. - When the user of the
portable device 81 wants to restore second files from thedock 82, the user selects the second files via thefirst application program 813 to create a third log file. The generation of the third log file can be referred to the previous paragraphs and not discussed here for briefly. - When the
portable device 81 connects to thedock 82, the control of thefirst storage device 815 is transferred to theUSB OTG controller 821. In other words, thefirst storage device 815 can only be accessed by theUSB OTG controller 821 and cannot be accessed by thefirst controller 811. The third log file created by thefirst application program 813 is stored in thefirst storage device 815 and is then transmitted to thesecond storage device 823 via thebuffer 822. TheUSB OTG controller 821 reads the third log file and finds corresponding to the second files that indicating by the third log file. - The
USB OTG controller 821 then determines a transmission path between thesecond storage device 823 and thefirst interface 824. The second files may be directly transmitted from thesecond storage device 823 to thefirst interface 824 or transmitted from thesecond storage device 823 to thefirst interface 824 via thebuffer 822. If at least one second file is stored in theUSB storage device 83, theUSB OTG controller 821 creates other transmission path between thefirst interface 824 and thesecond interface 825. - The
USB OTG controller 821 transmits the second files via the selected transmission path to thefirst interface 824 and then the second files are transmitted to thefirst storage device 815. When the second files are transmitted via thebuffer 822, theUSB OTG controller 821 monitors the status of thebuffer 822 to transmit the data stored in thebuffer 822 to thefirst storage device 815 when thebuffer 822 is full or the remaining capacity of thebuffer 822 is less than a predetermined value. - After the restore operation, the
USB OTG controller 821 creates a fourth log file indicating the restore status of the second files. The fourth log file is transmitted to thefirst storage device 815 via thebuffer 822. When theportable device 81 disconnects from thedock 82 or the restore operation is completed, the control of thefirst storage device 815 is returned back to theprocessor 811. Theprocessor 811 reads the fourth log file stored in thefirst storage device 815 to know the restore result. - When the
portable device 81 connects to thedock 82, theprocessor 811 transmits the third log file to thedock 82 and waits a response from theUSB OTG controller 821. The third log file is generated by the first application program and transmitted to thesecond storage device 823 via thebuffer 822. Noted that in this example, at least the third log file is transmitted to thesecond storage device 823 via thebuffer 822. In this example, the control of thefirst storage device 815 is not transferred to theUSB OTG controller 821. - The
USB OTG controller 821 reads the third log file and finds corresponding to the second files that indicating by the third log file. TheUSB OTG controller 821 then determines a transmission path between thesecond storage device 823 and thefirst interface 824. The second files may be directly transmitted from thesecond storage device 823 to thefirst interface 824 or transmitted from thesecond storage device 823 to thefirst interface 824 via thebuffer 822. If at least one second file is stored in theUSB storage device 83, theUSB OTG controller 821 creates other transmission path between thefirst interface 824 and thesecond interface 825. - The
USB OTG controller 821 transmits the second files via the selected transmission path to thefirst interface 824 and then the second files are transmitted to thefirst storage device 815 via thefirst interface 824. When the second files are transmitted via thebuffer 822, theUSB OTG controller 821 monitors the status of thebuffer 822 to transmit the data stored in thebuffer 822 to thefirst storage device 815 when thebuffer 822 is full or the remaining capacity of thebuffer 822 is less than a predetermined value. - In the fourth example, the
portable device 81 and thedock 82 operates independently. In other words, theprocessor 811 controls the transmission of the second files between theportable device 81 and thefirst interface 824, and theUSB OTG controller 821 controls the transmission of the second files between thefirst interface 824 and thesecond storage device 823 or theUSB storage device 83. - After the backup operation, the
USB OTG controller 821 creates a fourth log file indicating the restore status of the second files. The fourth log file is transmitted to thefirst storage device 815 via thebuffer 822. When theportable device 81 disconnects from thedock 82 or the restore operation is completed, theprocessor 811 reads the fourth log file stored in thefirst storage device 815 to know the restore result. -
FIG. 9 a flowchart of a backup method according to another embodiment of the invention. In step S91, an application program is executed to select at least one file to be backed up in a dock to generate a first log file. The generation log file can be referred to the description ofFIGS. 3 , 4 a, 4 b and 4 c. In step S92, the dock acquires an operating mode to select a transmission path. The operating mode can be determined by a controller of the dock according to the operating status of the dock. In another embodiment, the operating mode can be switched via a physical switch by a user. The operating mode determines whether the data transmitted to the dock or from the dock has to be transmitted via a buffer that is controlled by a controller of the dock. - After acquiring the operating mode, the dock selects a corresponding transmission path. In step S93, the first log file is transmitted to a second storage device of the dock via the buffer. Noted that the first log file must be transmitted to the second storage device via the buffer. In step S94, the file is transmitted from a first storage device to the second storage device for backup. After the backup operation, a second log file indicating a backup status is generated by the controller of the dock in the step S95. In the step S96, the second log file is transmitted to the portable device via the selected transmission path and a processor of the portable device reads the second log file to know the backup status.
- While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Claims (14)
1. A backup method for a portable device, comprising:
creating a first log file according to a first file that has to be stored in a backup device;
connecting the portable device to the backup device;
transmitting the first log file to the backup device; and
reading the first log file, by the backup device, and storing the first file to a storage device of the backup device;
wherein the first log file is transmitted to the storage device via a buffer that is controlled by a controller of the backup device.
2. The method as claimed in claim 1 , wherein the first file is transmitted to the storage device via the buffer.
3. The method as claimed in claim 1 , further comprising:
when the backup device receives the first file, the controller controls the first file to be transmitted to the storage device directly or via the buffer.
4. The method as claimed in claim 1 , wherein the storage device is a second storage device and when the portable device connects to the backup device, the control of a first storage device of the portable device is transferred to the backup device.
5. The method as claimed in claim 4 , further comprising:
when the backup device finishes storing the first file, the control of the first storage device is returned to the portable device from the backup device.
6. The method as claimed in claim 1 , further comprising:
when the backup device finishes storing the first file, the backup device generates and stores a second log file in the portable.
7. The method as claimed in claim 6 , further comprising:
reading the second log file by the portable device to acquire backup status of the first file.
8. The method as claimed in claim 1 , wherein the first log file comprises a file name of the first file and a timestamp.
9. A dock for storing data of a portable device, comprising:
a first storage device;
a buffer coupled to the first storage device; and
a controller to detect whether the portable device connects to the dock, and when the portable device connects to the dock, a first log file is transmitted to the first storage device via the buffer, the controller reads the first log file to store a first file from the portable device, and the controller creates a second log file indicating a backup status of the first file.
10. The dock as claimed in claim 9 , wherein the first file is transmitted to the first storage device via the buffer.
11. The dock as claimed in claim 9 , further comprising a first interface to direct the first file to the buffer or the first storage device according to a control signal from the controller when the first interface receives the first file.
12. The dock as claimed in claim 9 , wherein when the controller receives the first log file, the controller establish a transmission path between the first storage device and a first interface that coupled to the portable device.
13. The dock as claimed in claim 9 , wherein when the controller receives the first file, the controller establish a transmission path between the first storage device and a first interface that coupled to the portable device, and the first file is transmitted to the first storage device via the transmission path.
14. The dock as claimed in claim 9 , further comprising a second interface to connect an external storage device, and the controller stored a second file from the portable device to the external storage device according to the first log file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/487,236 US20120239894A1 (en) | 2011-01-24 | 2012-06-03 | Backup method for portable device |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201161435631P | 2011-01-24 | 2011-01-24 | |
US13/302,788 US20130132347A1 (en) | 2011-11-22 | 2011-11-22 | Backup method for portable device |
US13/487,236 US20120239894A1 (en) | 2011-01-24 | 2012-06-03 | Backup method for portable device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/302,788 Continuation-In-Part US20130132347A1 (en) | 2011-01-24 | 2011-11-22 | Backup method for portable device |
Publications (1)
Publication Number | Publication Date |
---|---|
US20120239894A1 true US20120239894A1 (en) | 2012-09-20 |
Family
ID=46829417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/487,236 Abandoned US20120239894A1 (en) | 2011-01-24 | 2012-06-03 | Backup method for portable device |
Country Status (1)
Country | Link |
---|---|
US (1) | US20120239894A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657043A (en) * | 2013-11-19 | 2015-05-27 | 中兴通讯股份有限公司 | Multimedia data backup method, user terminal and synchronous device |
US9720788B2 (en) * | 2014-08-29 | 2017-08-01 | Seiko Epson Corporation | Recording device and control method of a recording device |
US10127119B1 (en) * | 2014-05-21 | 2018-11-13 | Veritas Technologies, LLC | Systems and methods for modifying track logs during restore processes |
CN114390067A (en) * | 2021-12-20 | 2022-04-22 | 北明软件有限公司 | Data exchange method, system, device and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020023198A1 (en) * | 2000-07-07 | 2002-02-21 | Tomoyuki Kokubun | Information processing apparatus and data backup method |
US20050154734A1 (en) * | 2003-12-19 | 2005-07-14 | International Business Machines Corporation | Method and system for monitoring and reporting backup results |
US20070132733A1 (en) * | 2004-06-08 | 2007-06-14 | Pranil Ram | Computer Apparatus with added functionality |
US20070250546A1 (en) * | 2006-04-25 | 2007-10-25 | Dietmar Muhlhausser | Burn log files |
US20080243959A1 (en) * | 2004-04-08 | 2008-10-02 | Bacastow Steven V | Apparatus and method for backing up computer files |
US20090076640A1 (en) * | 2007-09-14 | 2009-03-19 | Tokyo Electron Limited | System, method and storage medium for controlling a processing system |
US20100287307A1 (en) * | 2006-05-24 | 2010-11-11 | Sagem Orga Gmbh | Data Synchronization |
US20110246983A1 (en) * | 2010-04-01 | 2011-10-06 | Storage Appliance Corporation | Wireless Network Backup Device and Method |
-
2012
- 2012-06-03 US US13/487,236 patent/US20120239894A1/en not_active Abandoned
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020023198A1 (en) * | 2000-07-07 | 2002-02-21 | Tomoyuki Kokubun | Information processing apparatus and data backup method |
US20050154734A1 (en) * | 2003-12-19 | 2005-07-14 | International Business Machines Corporation | Method and system for monitoring and reporting backup results |
US20080243959A1 (en) * | 2004-04-08 | 2008-10-02 | Bacastow Steven V | Apparatus and method for backing up computer files |
US20070132733A1 (en) * | 2004-06-08 | 2007-06-14 | Pranil Ram | Computer Apparatus with added functionality |
US20070250546A1 (en) * | 2006-04-25 | 2007-10-25 | Dietmar Muhlhausser | Burn log files |
US20100287307A1 (en) * | 2006-05-24 | 2010-11-11 | Sagem Orga Gmbh | Data Synchronization |
US20090076640A1 (en) * | 2007-09-14 | 2009-03-19 | Tokyo Electron Limited | System, method and storage medium for controlling a processing system |
US20110246983A1 (en) * | 2010-04-01 | 2011-10-06 | Storage Appliance Corporation | Wireless Network Backup Device and Method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657043A (en) * | 2013-11-19 | 2015-05-27 | 中兴通讯股份有限公司 | Multimedia data backup method, user terminal and synchronous device |
EP3073360A4 (en) * | 2013-11-19 | 2017-07-26 | ZTE Corporation | Multi-media data backup method, user terminal and synchronizer |
US10127119B1 (en) * | 2014-05-21 | 2018-11-13 | Veritas Technologies, LLC | Systems and methods for modifying track logs during restore processes |
US9720788B2 (en) * | 2014-08-29 | 2017-08-01 | Seiko Epson Corporation | Recording device and control method of a recording device |
CN114390067A (en) * | 2021-12-20 | 2022-04-22 | 北明软件有限公司 | Data exchange method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20130132347A1 (en) | Backup method for portable device | |
CN103092723B (en) | Hand-held device and data processing method | |
US8499190B2 (en) | Portable device and backup method thereof | |
KR101138491B1 (en) | Synchronizat10n methods and systems | |
US20010041021A1 (en) | System and method for synchronization of image data between a handheld device and a computer | |
US20050129385A1 (en) | Intelligent portable memory device with display | |
US9384098B1 (en) | Portable data archiving device | |
CN102685194B (en) | Memory device migration and the method and system be redirected | |
KR101212872B1 (en) | Synchronizati0n methods and systems | |
US20120239894A1 (en) | Backup method for portable device | |
US9361472B2 (en) | Information processing apparatus, control method of information processing apparatus, and program | |
KR20080005038A (en) | Method and apparatus of sharing contents assets via picture transfer protocol | |
WO2016059749A1 (en) | Information processing system, information processing apparatus, control method of information processing apparatus, image forming apparatus, control method of image forming apparatus, and program | |
TW201227268A (en) | Data backup system and data backup and retrival method | |
JP6329429B2 (en) | Information processing apparatus, control method, and program | |
JP2005258613A (en) | Recording system, data processing system and data processing method | |
US20110173240A1 (en) | Media collection management | |
KR20200111989A (en) | Electronic device for searching a file information stored in external device and method of operating thereof | |
JP6231952B2 (en) | Data management apparatus and data management method | |
JP6544145B2 (en) | IMAGE PROCESSING SYSTEM, TERMINAL DEVICE, SCREEN PROVIDING METHOD, AND COMPUTER PROGRAM | |
WO2024114344A1 (en) | File management method and electronic device | |
WO2023237047A1 (en) | Data processing method and electronic device | |
US20230195692A1 (en) | File processing apparatus, file processing method, and storage medium | |
US20120047274A1 (en) | Method for managing data between mobile devices and personal computer | |
US20120137041A1 (en) | Netbook synchronization chip device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: I O INTERCONNECT, LTD., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:CHEN, JOHNNY;ZEUNG, PING-SHUN;REEL/FRAME:028307/0808 Effective date: 20120517 |
|
AS | Assignment |
Owner name: I/O INTERCONNECT INC., TAIWAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:I/O INTERCONNECT, LTD.;REEL/FRAME:035186/0544 Effective date: 20150120 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |