Backup strategy based on timestamp directory

My situation

The Linux virtual machine has a backup directory in the following directory format: /{{ Tools }}/{{ Region }}/{{ Date }}/backup.tar.gz .

Various backup files are stored in the {{ Date }} directory.

I have set up Syncthing services on both the local Linux virtual machine and the remote Linux virtual machine

My needs

Local Linux virtual machine saves 3 days of backup

Remote Linux virtual machine saves 7 days of backup

I tried using ‘Staggered File Versioning’ and found that it does not clean up the directory

My configuration

Local Linux virtual machine

  • Folder Path: “/{{ Tools }}/{{ Region }}/”
  • File Versioning: “Staggered File Versioning”
  • Maximum Age: 3
  • Folder Type: “Send Only”

Remote Linux virtual machine

  • Folder Path: “/{{ Tools }}/{{ Region }}/”
  • File Versioning: “Staggered File Versioning”
  • Maximum Age: 7
  • Folder Type: “Receive Only”

Please help me solve this problem, thanks