Managing versioning files


Table of Contents


When an allowed app is registered in 'rwv' mode, if files or folders stored on the server are updated, backup files/folders are created. You can modify the original files using the backup files.

View backup file list

  1. Navigate to the directory where the ‘./fbmegas’ executable file is stored. (e.g., /namusoft/megaclient) Then, execute the following command:
    cd /namusoft/megaclient
  2. Execute the following command to check if there are any backup files:
    ./fbmega –rls access_path
    ‘access_path’ : The path where the backup files are stored (e.g., / )
    • Input rules: No restrictions on characters, numbers, or special characters
    • Input length: 1 ~ 128 characters
    • Default value: None

    Note

    You should specify the relative path. For example, if the ‘/root/mount_point’ directory is mounted, to check for backup files or folders stored in the ‘/root/mount_point/test’ folder, specify the access_path as ‘/test’.

    If no backup files are found, the message 'no revision file.' will be displayed.

  3. Execute the following command to view the revision file information of the backup file:
    ./fbmega –rls access_file
    ‘access_path’ : The path where the backup file is stored, along with the name of the file to be checked (e.g., /test1/200.txt )
    • Input rules: No restrictions on characters, numbers, or special characters
    • Input length: 1 ~ 128 characters
    • Default value: None

    Note

    You should specify the relative path. For example, if the ‘/root/mount_point’ directory is mounted, to check for backup files or folders stored in the ‘/root/mount_point/test’ folder, specify the access_path as ‘/test’.

    If no backup files are found, the message 'no revision file.' will be displayed. A revision file query screen will be shown as follows:

Restore backup files

  1. Navigate to the directory where the ‘./fbmegas’ executable file is stored. (e.g., /namusoft/megaclient) Then, execute the following command:
    cd /namusoft/megaclient
  2. Execute the following command to restore a revision file:
    ./fbmega –rrs revision_file_name
    ‘revision_file_name’ : The path and name of the revision file (e.g., /test1/temp3/200.txt.20240429141912660)
    • Input rules: No restrictions on characters, numbers, or special characters
    • Input length: 1 ~ 128 characters
    • Default value: None

    Note

    You should specify the relative path. For example, if the ‘/root/mount_point’ directory is mounted, to restore a file from the ‘/root/mount_point/test’ folder, specify the revision file path as ‘/test’.

    Screenshot of restored revision file:

Delete backup files

  1. Navigate to the directory where the ‘./fbmegas’ executable file is stored. (e.g., /namusoft/megaclient) Then, execute the following command:
    cd /namusoft/megaclient
  2. Execute the following command to delete a revision file:
    ./fbmega –rrm revision_file_name
    ‘revision_file_name’ : The path and name of the revision file (e.g., /test1/temp3/200.txt.20240429141912660)
    • Input rules: No restrictions on characters, numbers, or special characters
    • Input length: 1 ~ 128 characters
    • Default value: None

    Note

    You should specify the relative path. For example, if the ‘/root/mount_point’ directory is mounted, to delete a file from the ‘/root/mount_point/test’ folder, specify the revision file path as ‘/test’.

    Screenshot of deleted revision file:



    Important

    If revision files accumulate, it could affect server disk space. Therefore, revision files older than 30 days will be automatically deleted.

Have more questions? Submit a request