Add new container
Note: Recycle bin functionality can be added to existing containers as well.
[root@qorestor ~]# container --add --name recycledemo
Container "recycledemo" created successfully.
[root@qorestor ~]# connection --add --name recycledemo --type CIFS
Successfully added connection entry.
CIFS connection IP addresses : *
CIFS Share name : recycledemo
CIFS connection Enabled : Yes
Enable recycle bin functionality
[root@qorestor ~]# container --recycle_bin --enable --rb_retention_period 7 --name recycledemo
Container recycle bin enabled successfully.
Mount new container and add files
C:\>net use R: \\192.168.1.42\recycledemo
Enter the user name for '192.168.1.42': administrator
Enter the password for 192.168.1.42:
The command completed successfully.
C:\>net use
New connections will be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
OK R: \\192.168.1.42\recycledemo Microsoft Windows Network
C:\>R:
R:\>dir c:\temp > testfile.txt
R:\>mkdir testfolder
R:\>cd testfolder
R:\testfolder>dir c:\tools > testfile2.txt
R:\testfolder>cd ..
R:\>dir /S/B
R:\testfile.txt
R:\testfolder
R:\testfolder\testfile2.txt
Delete files from the container
R:\>del testfile.txt
R:\>del testfolder\testfile2.txt
R:\>rmdir testfolder
R:\>dir /S/B
<empty>
Generate report for recycle bin
[root@qorestor ~]# container --recycle_bin --file_list --name recycledemo
Recycle view files is initiated. Please use "container --recycle_bin --view_file_list --name recycledemo" to check the list of files in recyclebin
View files in report
[root@qorestor ~]# container --recycle_bin --view_file_list --name recycledemo
List of files deleted until 2022-02-08 07:18:55
Deletion Time Filename
2022-02-08 07:15:15 : /testfile.txt
2022-02-08 07:17:11 : /testfolder/testfile2.txt
Restore files from recycle bin
[root@qorestor ~]# container --recycle_bin --restore --name recycledemo
Recycle bin restore initiated successfully for container recycledemo at 2022-02-08 07:27:18. Check events for completion.
Verify in event log it is completed
[root@qorestor ~]# alerts --show --events
Index Severity Time Event Message
204 INFO 2022-02-08 07:27:18 Container "recycledemo" Recycle Bin restore is finished.
203 INFO 2022-02-08 07:27:18 Container "recycledemo" Recycle Bin restore is started.
....
Verify in share files are restored
R:\>dir /S/B
R:\testfile.txt
R:\testfolder
R:\testfolder\testfile2.txt