Usage and Integration

Navigation:  File Change API >

Usage and Integration

Previous pageReturn to chapter overviewNext page

Userland utilities

 

/usr/bin/cloudlinux-backup-helper is a utility for getting the list of changed files.

 

It is supposed to be run by a super user only.

 

Command line parameters:

 

-t | --timestamp retrieve file names for files modified after specified timestamp

-u | --uid       retrieve file names for particular UID only

 

If no UID specified, are retrieved for all users. If no timestamp specified, all database events are shown.

 

Output Format

 

protocol version (1 right now), timestamp (in seconds) - up to which time data was collected

UID:absolute path to file changed

UID:absolute path to file changed

 

Note. The timestamp in output is needed so you can clearly identify from which timestamp to get list of changed files next.

 

Examples:

 

[[email protected] ~]# cloudlinux-backup-helper -t 1495533489 -u <UID>

1,1495533925

1001:/home/user2/public_html/output.txt

1001:/home/user2/public_html/info.php

 

[[email protected] ~]# cloudlinux-backup-helper -t 1495533489

1,1495533925

1000:/home/user1/.bashrc

1001:/home/user2/public_html/output.txt

1001:/home/user2/public_html/info.php

1003:/home/user3/logs/data.log

 

Getting changed files by end user

 

/usr/bin/cloudlinux-backup-helper-uid is a SUID wrapper for the cloudlinux-backup-helper utility that enables an end user to get the list of files changed. It accepts timestamp argument only and retrieves data of the user who is running it only.

 

Examples:

 

[[email protected] ~]$ cloudlinux-backup-helper-uid                                                                                                                                      

1,1495530576

1000:/home/user/.bash_history

 

[[email protected] ~]$ cloudlinux-backup-helper-uid -t 1495547922

1,1495548343

1000:/home/user/file1.txt

1000:/home/user/file2.txt

 

This command is available within CageFS.