# How can i sync content from a text file with its path?

**URL:** <https://forum.rclone.org/t/how-can-i-sync-content-from-a-text-file-with-its-path/6308>\
**Category:** Help and Support\
**Created:** [July 31, 2018, 12:49pm UTC](https://forum.rclone.org/t/how-can-i-sync-content-from-a-text-file-with-its-path/6308 "2018-07-31T12:49:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GAZ082](https://forum.rclone.org/user_avatar/forum.rclone.org/gaz082/32/1721_2.png) [@GAZ082](https://forum.rclone.org/u/GAZ082)\
**Post date:** [July 31, 2018, 12:49pm UTC](https://forum.rclone.org/t/how-can-i-sync-content-from-a-text-file-with-its-path/6308/1 "2018-07-31T12:49:31Z")

</div>

Hi there. I made a script that puts the path of the content i’m interested in backing up, then rsync copies them to a backup folder and then to the cloud with gsutils. Now i want to have rclone skip the copying part and go straight ahead by reading that file and syncing.

Is this possible? Tried something like:

`rclone sync --include-from /media/Multimedia/files_dirs_backup.txt backup:backup_bucket/Destination_Folder --dry-run` and says i need 2 arguments, undoubtly the source, but i want rclone to pickup the files from the file.

Perhaps i’d make a script to read line by line and then execute rclone sync for each one?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 1, 2018, 5:39pm UTC](https://forum.rclone.org/t/how-can-i-sync-content-from-a-text-file-with-its-path/6308/2 "2018-08-01T17:39:31Z")

</div>

If you just have source file paths, use `--files-from`. This is one file per line rooted at the sync root.

So let’s say you had /home/me/file1 and /home/me/file2 to transfer, you would do

```
rclone sync --files-from files.txt /home/me backup:wherever

```

Where `files.txt` would contain

```auto
file1
file2

```

This is explained in detail here: [https://rclone.org/filtering/#files-from-read-list-of-source-file-names](https://rclone.org/filtering/#files-from-read-list-of-source-file-names)

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:46am UTC](https://forum.rclone.org/t/how-can-i-sync-content-from-a-text-file-with-its-path/6308/3 "2020-03-04T00:46:31Z")

</div>

Closed on March 4, 2020, 12:46am UTC


