I have a text file with all the folder names in date order which I'm trying to call in a script to rsync to once backup folder, basically merging all the incremental backups.
#!/bin/bash
filename=/home/user/Scripts/Testing/temp.txt
while read filename
do
$ for f in ls -t /var/user-test/ | grep $filename; rsync -aL /var/user-test/$f /var/u-backup/secure/;
done < temp.txt
This script is meant to run through the different backup folders and sync them into one folder. My issue is one this script doesn't work and two is this the best way to merge incremental backups